@charset "utf-8";
/* ==========================================================
   新材料 / 氟碳涂料 企业官网 样式
   主色 #0f6099  辅色 #1b73b3  点缀 #cc3344
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  width: 100%; min-width: 320px; color: #333; line-height: 1.6;
  background: #fff; overflow-x: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}
body::-webkit-scrollbar { width: 9px; height: 9px; background: #fafafa; }
body::-webkit-scrollbar-thumb { border-radius: 5px; background: #808080; border: 2px solid #fafafa; }
a { color: #333; text-decoration: none; transition: color .25s, background .25s, letter-spacing .25s; }
a:hover { color: #0f6099; }
img { border: 0; vertical-align: middle; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
.clear { clear: both; height: 0; overflow: hidden; }
.flex { display: flex; flex-wrap: wrap; }
.hidden { overflow: hidden; }
.none { display: none !important; }

/* ---- 布局容器 ---- */
.page_max_box { width: 100%; max-width: 1920px; margin: 0 auto; position: relative; }
.page_main_box { width: 1200px; max-width: 94%; margin: 0 auto; position: relative; }
.w1440 { max-width: 1440px; }
.w1920 { width: 100%; max-width: 1920px; margin: 0 auto; }
/* .w90 仅用于首页（产品/关于我们/案例/新闻板块 + 该页搜索条）。
   宽度必须与 .page_main_box 一致，否则首页内容会比顶部「您好」、导航、页脚宽出一截，左右边缘对不齐。 */
.w90 { width: 1200px; max-width: 94%; margin: 0 auto; }
@media only screen and (max-width: 1250px) { .page_main_box, .w90 { width: 100%; max-width: 96%; } }

/* ================= 顶部条 ================= */
.topbox { background: #f5f5f5; line-height: 25px; color: #808080; border-bottom: 1px solid #f0f0f0; }
.topbox .page_main_box { display: flex; justify-content: space-between; align-items: center; }
/* 中英文切换按钮 */
.topbox .right .lang-switch { margin-left: 12px; padding: 0 9px; border: 1px solid #d8d8d8; border-radius: 3px; color: #0f6099; font-size: 12px; line-height: 20px; display: inline-block; vertical-align: middle; }
.topbox .right .lang-switch:hover { background: #0f6099; border-color: #0f6099; color: #fff; }
.topbox .left { padding: 7px 0; }
.topbox .right { display: flex; align-items: center; gap: 18px; }
.topbox .right span { padding: 7px 0 7px 24px; font-size: 15px; background-position: left center; background-repeat: no-repeat; }
.topbox .right span.tdh { background-image: url(../img/icon1.png); }
.topbox .right span.tyx { background-image: url(../img/icon2.png); }
@media only screen and (max-width: 1024px) { .topbox { display: none; } }

/* ================= 导航 ================= */
.headbox { width: 100%; height: 0; margin: 0 auto 75px; z-index: 999; position: relative; }
.headbox .inner { height: 75px; background: #fff; position: absolute; left: 0; top: 0; width: 100%; box-shadow: 0 5px 15px rgba(0, 0, 0, .1); }
.headbox .page_main_box { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.headbox .logo { height: 100%; display: flex; align-items: center; }
.headbox .logo a { display: block; height: 100%; padding: 6px 0; }
.headbox .logo a img { height: 60px; width: auto; }
.navbox ul { display: flex; align-items: center; }
.navbox ul li { position: relative; }
.navbox ul li > a { display: block; font-size: 15px; padding: 10px 16px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.navbox ul li.active > a, .navbox ul li > a:hover { background: #1b73b3; color: #fff; }
.navico { display: none; width: 40px; height: 40px; cursor: pointer; position: relative; }
.navico p { position: absolute; left: 8px; top: 18px; width: 26px; height: 3px; background: #0f6099; border-radius: 2px; transition: .3s; }
.navico p::before, .navico p::after { content: ""; position: absolute; left: 0; width: 26px; height: 3px; background: #0f6099; border-radius: 2px; transition: .3s; }
.navico p::before { top: -8px; }
.navico p::after { top: 8px; }
.nav_on .navico p { background: transparent; }
.nav_on .navico p::before { top: 0; transform: rotate(45deg); }
.nav_on .navico p::after { top: 0; transform: rotate(-45deg); }

@media only screen and (min-width: 1025px) {
  .navbox { display: block !important; }
}
@media only screen and (max-width: 1024px) {
  .headbox { margin: 0; }
  .headbox .inner { height: 60px; position: fixed; top: 0; z-index: 99999; }
  .headbox .page_main_box { width: 96%; }
  .headbox .logo a { padding: 6px 0; }
  .headbox .logo a img { height: 40px; }
  .navico { display: block; }
  .navbox { display: none; width: 100%; background: #292d33; position: fixed; left: 0; top: 0; height: 100%; z-index: 9999; padding-top: 70px; overflow-y: auto; }
  .navbox.nav_on { display: block; }
  .navbox ul { flex-direction: column; align-items: stretch; }
  .navbox ul li { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .navbox ul li > a { color: #fff; line-height: 50px; padding: 0 20px; border-radius: 0; }
  .navbox ul li.active > a, .navbox ul li > a:hover { background: #0f6099; }
}
@media only screen and (max-width: 768px) {
  .headbox .inner { height: 50px; }
  .headbox .logo a { padding: 4px 0; }
  .navbox { padding-top: 60px; }
}
.head-fixed .headbox .inner { position: fixed; top: 0; height: 60px; animation: navdown .3s; }
@media only screen and (min-width: 1025px) {
  .head-fixed .headbox .logo a { padding: 4px 0; }
  .head-fixed .headbox .logo a img { height: 44px; }
}
@keyframes navdown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ================= Banner ================= */
.banner { width: 100%; position: relative; overflow: hidden; background: #0b4a75; }
/* 容器比例与素材 1920×560 严格一致（560/1920 = 29.1667%）：图片 1:1 铺满，不放大、不裁切，文字保持原始锐度 */
.bannerpic { position: relative; width: 100%; padding-bottom: 29.1667%; }
/* 不透明：两张图始终首尾相接，不留缝，避免透出 .banner 的深蓝底 */
.bannerpic li { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; transform: translateX(100%); transition: transform .9s cubic-bezier(.4, 0, .2, 1); }
.bannerpic li.on { transform: translateX(0); }
.bannerpic li img { width: 100%; height: 100%; object-fit: cover; }
/* 「近到远」推镜（Ken Burns）。素材已预放大到容器的 1.08 倍（2074×605），
   所以动画全程图片都是「缩小 / 1:1」渲染，不会被浏览器放大插值，文字保持锐利 */
@keyframes bannerZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* 4s 推镜 + 3s 静止 = 与 js 里 7s 的轮换间隔衔接 */
.bannerpic li.on img { animation: bannerZoom 4s ease-out both; }
.banner .btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.banner .btn span { display: block; width: 52px; height: 28px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .75; transform: scale(1); transition: transform .3s ease, opacity .3s ease, border-color .3s ease; }
.banner .btn span img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner .btn span:hover, .banner .btn span.on { transform: scale(1.38); opacity: 1; border-color: #fff; }
@media only screen and (max-width: 768px) {
  .banner .btn { bottom: 10px; }
  .banner .btn { bottom: 10px; gap: 8px; }
  .banner .btn span { width: 38px; height: 21px; border-width: 1px; }
}
.inner-banner { position: relative; width: 100%; overflow: hidden; background: #f7fbfe; }
.inner-banner > img { display: block; width: 100%; }
.inner-banner .t { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; }
/* 文字左边缘 = .page_main_box 左边缘 = 下方「热门关键词」左边缘 */
.inner-banner .tx { margin-left: 0; padding-left: 0; }
.inner-banner .tx h1 { font-size: clamp(18px, 2.94vw, 56px); line-height: 1.1; font-weight: 700; color: #00254a; letter-spacing: 1px; }
.inner-banner .tx p { margin-top: 1.2vw; font-size: clamp(12px, 1.43vw, 27px); color: #00466f; letter-spacing: .5px; }
@media only screen and (max-width: 1024px) {
  .banner { padding-top: 60px; }
  .bannerpic { padding-bottom: 40%; }
}
@media only screen and (max-width: 768px) {
  .banner { padding-top: 50px; }
}

/* ================= 搜索条 ================= */
.searchbox { padding: 18px 0; background: #f5f5f5; }
.searchbox .page_main_box, .searchbox .w90 { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
/* 字号显式写死：首页用 .w90、其它分页用 .page_main_box，两者共用本规则。
   原来靠继承 body 的 14px，一旦上层容器有任何影响就会出现目视差异，现固定为 15px 保证各页一致。 */
.searchbox .txtbox { flex: 1; min-width: 0; line-height: 24px; font-size: 15px; color: #808080; display: flex; align-items: flex-start; gap: 6px; }
.searchbox .txtbox .tit { font-weight: 600; color: #555; flex-shrink: 0; }
/* 关键词单独一层：换行后每行都从同一个左边距开始，与第一行首个关键词对齐 */
.searchbox .txtbox .words { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.searchbox .txtbox a { color: #666; }
.searchbox .txtbox a:hover { color: #0f6099; }
.searchbox .search { width: 380px; max-width: 40%; flex-shrink: 0; }
.searchbox .search form { position: relative; }
.searchbox .search p { border: 1px solid #cdd9e5; background: #fff; border-radius: 24px; height: 48px; display: flex; align-items: center; padding: 0 56px 0 20px; transition: border-color .3s; }
.searchbox .search p:focus-within { border-color: #1b73b3; }
.searchbox .search input { width: 100%; height: 100%; border: 0; outline: none; font-size: 14px; color: #333; background: transparent; }
.searchbox .search button { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #1b73b3 url(../img/icon3.png) center no-repeat; background-size: 18px 18px; cursor: pointer; transition: background-color .25s; }
.searchbox .search button:hover { background-color: #cc3344; }
@media only screen and (max-width: 1024px) {
  .searchbox .page_main_box, .searchbox .w90 { flex-direction: column; align-items: stretch; gap: 10px; }
  .searchbox .txtbox { width: 100%; }
  .searchbox .search { width: 100%; max-width: 100%; }
}

/* ================= 首页标题 ================= */
.home_title { text-align: center; line-height: 1; padding-bottom: 30px; position: relative; z-index: 5; }
.home_title p { font-size: 40px; font-weight: 600; }
.home_title span { display: block; width: 250px; height: 20px; background: url(../img/icon4.png) center no-repeat; margin: 20px auto; position: relative; }
.home_title span::before, .home_title span::after { content: ""; width: 100px; height: 1px; background: #ccc; position: absolute; top: 9px; }
.home_title span::before { left: 0; }
.home_title span::after { right: 0; }
.home_title.title2 p, .home_title.title2 p a { color: #fff; }
.home_title.title2 p a:hover { letter-spacing: 1px; color: #fff; }
.home_title.title2 span { background-image: url(../img/icon5.png); }
.home_title.title2 span::before, .home_title.title2 span::after { background: rgba(255, 255, 255, .5); }
@media only screen and (max-width: 1250px) { .home_title p { font-size: 36px; } }
@media only screen and (max-width: 1024px) { .home_title { padding-bottom: 20px; } .home_title p { font-size: 30px; } }
@media only screen and (max-width: 480px) { .home_title p { font-size: 25px; } .home_title span { width: 210px; } .home_title span::before, .home_title span::after { width: 80px; } }

/* ================= 产品板块 ================= */
.productbox { padding: 60px 0 70px; position: relative; overflow: hidden; }
.productbox .probg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #0f6099 url(../img/bg2.jpg) center bottom no-repeat; background-size: cover; z-index: 0; }
.productbox .w90 { position: relative; z-index: 5; }
.productbox .clalist { padding-bottom: 40px; }
.productbox .clalist ul { justify-content: center; }
.productbox .clalist ul li { padding: 0 6px 10px; }
.productbox .clalist ul li a { display: block; font-size: 15px; color: #fff; padding: 9px 22px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; font-weight: 600; white-space: nowrap; }
.productbox .clalist ul li.active a, .productbox .clalist ul li a:hover { background: #fff; color: #cc3344; border-color: #fff; }
.productbox .prolist { background: #fff; padding: 20px 20px 0; border-radius: 4px; }
.productbox .prolist ul { margin: 1px -4px 0 1px; }
.productbox .prolist ul li { width: 25%; flex-shrink: 0; text-align: center; margin: -1px 0 0 -1px; }
.productbox .prolist ul li a { display: block; border: 1px solid #ddd; padding: 14px; background: #fff; height: 100%; }
.productbox .prolist ul li .pic { width: 100%; padding: 4px; position: relative; height: 0; padding-bottom: 78%; overflow: hidden; }
.productbox .prolist ul li .pic img { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); transition: transform .4s; }
.productbox .prolist ul li .txt { padding: 8px 0; }
.productbox .prolist ul li .txt h3 { font-size: 15px; font-weight: 600; padding: 10px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.productbox .prolist ul li .txt p { color: #808080; font-size: 13px; height: 42px; overflow: hidden; }
.productbox .prolist ul li:hover a { background: #0f6099; border-color: #0f6099; color: #fff; position: relative; z-index: 2; }
.productbox .prolist ul li:hover .txt p { color: rgba(255, 255, 255, .85); }
.productbox .prolist ul li:hover .pic img { transform: translate(-50%, -50%) scale(1.06); }
.productbox .morebox { text-align: center; padding: 30px 0 10px; position: relative; z-index: 5; }
.productbox .morebox a { display: inline-block; color: #fff; border: 1px solid rgba(255, 255, 255, .6); padding: 10px 40px; border-radius: 30px; }
.productbox .morebox a:hover { background: #fff; color: #cc3344; }
@media only screen and (max-width: 1024px) { .productbox .prolist ul li { width: 33.333%; } }
@media only screen and (max-width: 768px) { .productbox .prolist ul li { width: 50%; } .productbox .prolist { padding: 12px 12px 0; } }

/* ================= 关于我们板块 ================= */
.companybox { padding: 80px 0; background: #0f6099 url(../img/bg3.jpg) center bottom no-repeat; background-size: cover; }
.companybox .w90 { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.companybox .txtbox { width: 48%; }
.companybox .txtbox .titl { font-size: 35px; font-weight: 600; line-height: 1; position: relative; padding-bottom: 3px; }
.companybox .txtbox .titl em { display: block; font-size: 45px; color: rgba(20, 145, 205, .6); font-style: normal; text-transform: uppercase; letter-spacing: 2px; }
.companybox .txtbox .titl a { color: #fff; padding: 5px 0 17px; display: inline-block; }
.companybox .txtbox .titl span { width: 2em; height: 3px; background: #148fcc; position: absolute; left: 0; bottom: 0; transition: width .4s; }
.companybox .txtbox .titl:hover span { width: 100%; }
.companybox .txtbox .text { margin: 26px 0; font-size: 15px; color: rgba(255, 255, 255, .9); line-height: 2; height: 10em; overflow: hidden; text-indent: 2em; }
.companybox .txtbox .text p { display: inline; }
/* 正文被 10em 截断时才由 JS 显示这个 more+，引导到 /about 看全文 */
.companybox .txtbox .more-link { display: none; margin-top: 4px; padding: 9px 24px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 3px; color: #fff; font-size: 14px; letter-spacing: 1px; transition: background .3s, border-color .3s; }
.companybox .txtbox .more-link:hover { background: #148fcc; border-color: #148fcc; }
.companybox .horbox { width: 46%; max-width: 620px; }
.companybox .horbox img { width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
@media only screen and (max-width: 1024px) {
  .companybox { padding: 55px 0; }
  .companybox .w90 { flex-direction: column; gap: 30px; }
  .companybox .txtbox { width: 100%; }
  .companybox .txtbox .titl { font-size: 28px; }
  .companybox .txtbox .titl em { font-size: 34px; }
  .companybox .horbox { width: 100%; max-width: 100%; }
}

/* ================= 案例板块 ================= */
.casebox { padding: 85px 0 60px; }
.caselist { position: relative; overflow: hidden; padding: 20px 0 40px; }
.caselist .track { display: flex; transition: transform .5s; }
.caselist .slide { width: 33.333%; flex-shrink: 0; padding: 0 15px; }
.caselist .slide > div { position: relative; border-radius: 16px; overflow: hidden; }
.caselist .pic { display: block; width: 100%; height: 0; padding-bottom: 72%; overflow: hidden; background: #f2f2f2; }
.caselist .pic img { width: 100%; height: 100%; object-fit: contain; position: absolute; left: 0; top: 0; transition: transform .5s; }
.caselist .txt { position: absolute; left: 0; bottom: 0; width: 100%; background: #f2f2f2; padding: 14px 8% 16px; border-radius: 0 0 16px 16px; z-index: 4; }
.caselist .txt span { display: block; font-size: 16px; font-weight: 600; line-height: 34px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.caselist .txt em { display: block; font-style: normal; color: #808080; font-size: 13px; height: 44px; overflow: hidden; }
.caselist .txt a { display: inline-block; color: #1b73b3; font-weight: 600; }
.caselist .slide:hover .pic img { transform: scale(1.06); }
.caselist .slide:hover .txt span { color: #0f6099; }
.case-arrow { display: flex; justify-content: center; gap: 14px; padding-top: 10px; }
.case-arrow b { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #1b73b3; color: #1b73b3; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; transition: .25s; }
.case-arrow b:hover { background: #1b73b3; color: #fff; }
/* 已到首/尾，按钮置灰，点击不再有位移 */
.case-arrow b.disabled { opacity: .35; cursor: default; }
.case-arrow b.disabled:hover { background: transparent; color: #1b73b3; }
@media only screen and (max-width: 1024px) { .caselist .slide { width: 50%; } }
@media only screen and (max-width: 600px) { .caselist .slide { width: 100%; } .casebox { padding: 50px 0 40px; } }

/* ================= 新闻板块 ================= */
.newsbox { padding: 60px 0 80px; }
.newslist { width: 48.5%; }
.newslist1 { float: left; }
.newslist2 { float: right; }
.newslist .list1 li { background: #fafafa; border-radius: 24px; box-shadow: 0 3px 10px rgba(128, 128, 128, .22); padding: 3% 3.5%; overflow: hidden; margin-bottom: 34px; }
.newslist .list1 li .pic { float: left; width: 36%; border-radius: 16px; overflow: hidden; height: 0; padding-bottom: 27%; position: relative; background: #f2f2f2; }
.newslist .list1 li .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.newslist .list1 li .con { width: 60%; float: right; }
.newslist .list1 li .tit { padding: 12px 0; font-size: 17px; font-weight: 600; }
.newslist .list1 li .tit a { display: block; line-height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.newslist .list1 li .txt { font-size: 14px; line-height: 1.9; color: #808080; height: 84px; overflow: hidden; }
.newslist .list1 li .time { width: 60%; float: left; font-size: 14px; color: #999; line-height: 30px; padding-top: 10px; }
.newslist .list1 li .more { width: 60px; float: right; padding-top: 8px; }
.newslist .list1 li .more a { display: block; border-radius: 10px; background: #1b73b3; color: #fff; line-height: 34px; text-align: center; }
.newslist .list1 li .more a:hover { background: #ff9600; color: #fff; }
.newslist .list1 li:hover .tit a { color: #1b73b3; }
@media only screen and (max-width: 1024px) {
  .newslist { width: 100%; float: none; }
  .newslist .list1 li { padding: 4% 4.5%; border-radius: 14px; margin-bottom: 20px; }
  /* 取消图片浮动：改为「图在上、文字在下」的正常流式排列。
     原来图片仍是 float:left 且宽 100%，会占满整行，导致文字的行盒
     被挤到浮动下方甚至被卡片 overflow:hidden 裁掉，手机上就只剩图片。 */
  .newslist .list1 li .pic { float: none; width: 100%; padding-bottom: 52%; border-radius: 10px; }
  .newslist .list1 li .con { width: 100%; float: none; padding-top: 12px; overflow: hidden; }
  .newslist .list1 li .txt { height: auto; }
  .newslist .list1 li .time { width: auto; float: left; padding-top: 10px; }
  .newslist .list1 li .more { float: right; padding-top: 8px; }
}
@media only screen and (max-width: 600px) {
  .newslist .list1 li { padding: 5%; border-radius: 12px; margin-bottom: 16px; }
  .newslist .list1 li .pic { padding-bottom: 56%; }
  .newslist .list1 li .tit { padding: 6px 0 4px; font-size: 16px; }
  .newslist .list1 li .tit a { line-height: 24px; }
  .newslist .list1 li .txt { font-size: 13px; line-height: 1.75; }
}

/* ================= 联系 + 留言 ================= */
.contactbox { padding: 70px 0; position: relative; overflow: hidden; }
.contactbox .page_main_box { display: flex; gap: 40px; position: relative; z-index: 5; }
.contactbox .txtbox { width: 46%; }
.contactbox .title p { font-size: 30px; font-weight: 600; padding-bottom: 16px; }
.contactbox .titl { font-size: 20px; font-weight: 600; padding-bottom: 14px; }
.contactbox .titl em { display: block; width: 60px; height: 3px; background: #0f6099; margin-top: 10px; }
.contactbox .text { padding-top: 12px; }
.contactbox .text div { font-size: 15px; line-height: 32px; color: #555; }
/* 多个号码分行显示时，号码列上下对齐（首行跟在标签后，其余行沿同一左边界） */
.nums { display: inline-block; vertical-align: top; }
#order { width: 50%; background: #f7f9fb; border-radius: 8px; padding: 30px 34px; box-shadow: 0 5px 20px rgba(0, 0, 0, .07); }
#order .title p { font-size: 26px; font-weight: 600; padding-bottom: 18px; }
#order ul li { margin-bottom: 14px; position: relative; }
#order .red { color: #cc3344; }
#order input.txt, #order textarea.txt { width: 100%; border: 1px solid #e2e6ea; background: #fff; padding: 11px 14px; border-radius: 4px; transition: .25s; }
#order input.txt:focus, #order textarea.txt:focus { border-color: #1b73b3; }
#order textarea.txt { height: 110px; resize: vertical; }
#order li.li_1 { width: 48%; float: left; }
#order li.li_1:nth-child(2) { float: right; }
#order li.li_3 { display: flex; gap: 10px; align-items: center; }
#order li.li_3 input { width: 45%; }
#order li.li_3 img { height: 40px; border-radius: 4px; cursor: pointer; }
#order .tj { width: 100%; background: #1b73b3; color: #fff; border: 0; padding: 13px; border-radius: 30px; font-size: 16px; font-weight: 600; letter-spacing: 2px; cursor: pointer; transition: .25s; }
#order .tj:hover { background: #0f6099; }
#order .clear { clear: both; }
@media only screen and (max-width: 1024px) {
  .contactbox .page_main_box { flex-direction: column; }
  .contactbox .txtbox, #order { width: 100%; }
}

/* ================= 友情链接 ================= */
.linkbox { padding: 25px 0 45px; }
.linkbox .titl { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #eee; margin-bottom: 14px; }
.linkbox .titl span { font-size: 13px; color: #bbb; letter-spacing: 2px; }
.linkbox .titl p { font-size: 18px; font-weight: 600; }
.linkbox ul { display: flex; flex-wrap: wrap; gap: 10px; }
.linkbox ul li a { display: block; padding: 8px 22px; border: 1px solid #e6e6e6; border-radius: 20px; color: #666; }
.linkbox ul li a:hover { background: #0f6099; border-color: #0f6099; color: #fff; }

/* ================= 页脚 ================= */
.footbox { color: rgba(255, 255, 255, .65); line-height: 30px; background: #282b2e url(../img/bg6.jpg) center top no-repeat; background-size: cover; }
.footbox a { color: rgba(255, 255, 255, .75); }
.footbox a:hover { color: #fff; }
.footbox .txt_con { padding: 55px 0 60px; display: flex; }
.footbox .txt_con .titl { padding-bottom: 22px; color: #fff; font-size: 18px; line-height: 20px; }
.footbox .txt_con .txt { width: 16%; flex-shrink: 0; padding: 0 1.5% 0 4%; position: relative; }
.footbox .txt_con .txt::after { content: ""; width: 1px; height: 100%; background: rgba(255, 255, 255, .2); position: absolute; left: 0; top: 0; }
.footbox .txt_con .txt::before { content: ""; width: 1px; height: 20px; background: #fff; position: absolute; left: 0; top: 0; }
.footbox .txt_con .txt.txt1 { width: 14%; padding-left: 0; }
.footbox .txt_con .txt.txt1::before, .footbox .txt_con .txt.txt1::after { content: none; }
.footbox .txt_con .ewm { width: 38%; flex-shrink: 0; }
.footbox .txt_con .ewm .con { float: right; padding-left: 170px; position: relative; }
.footbox .txt_con .ewm .pic { width: 150px; position: absolute; left: 0; top: 0; }
.footbox .txt_con .ewm .pic span { display: block; text-align: center; font-size: 13px; }
.footbox .txt_con .ewm .text { padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, .35); font-size: 14px; }
.footbox .txt_con .ewm .text em { font-size: 30px; font-style: normal; color: #fff; display: block; line-height: 40px; }
.footbox .bottom { padding: 22px 0; text-align: center; background: #191919; line-height: 26px; }
.footbox .bottom a { color: rgba(255, 255, 255, .7); }
@media only screen and (max-width: 1024px) {
  .footbox .txt_con { display: none; }
  .footbox .bottom { padding: 18px 0; }
}

/* ================= 侧边悬浮 / 移动底栏 ================= */
.online_box { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 9998; }
.online_box p { position: absolute; right: -3px; top: 0; width: 46px; height: 46px; margin: 0; border-radius: 3px; background: #0f6099; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transform-origin: 50% 50%; transition: transform .42s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, width .35s ease, background .35s ease; }
.online_box p svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
/* 自定义图标：与内置 SVG 同尺寸固定 24×24，按钮本身保持 46×46 不变 */
.online_box p img.ico { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.online_box p:hover { background: #1b73b3; }
/* 展开 / 收起（圆形按钮始终在流内，其余按钮绝对定位叠在它上面，收起时缩回圆形里） */
.online_box .r_open { position: relative; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #0f6099; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); transition: background .3s; }
.online_box .r_open:hover { background: #1b73b3; }
.online_box .r_open i { position: relative; display: block; width: 16px; height: 16px; transform: rotate(45deg); transition: transform .3s; }
.online_box .r_open i::before, .online_box .r_open i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: #fff; border-radius: 2px; }
.online_box .r_open i::after { transform: rotate(90deg); }
.online_box.closed .r_open i { transform: rotate(0deg); }
/* 号码 / 纯文字：悬停向左滑出内容 */
.online_box p.f-tel, .online_box p.f-text { width: 46px; overflow: hidden; justify-content: flex-start; padding-left: 11px; transition: width .35s ease, background .35s ease; }
.online_box p .num { margin-left: 10px; color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .25s .12s; text-decoration: none; }
/* .on 为触摸端（手机无 hover）由 JS 点击添加，与 :hover 效果一致 */
.online_box p.f-tel:hover, .online_box p.f-text:hover,
.online_box p.f-tel.on, .online_box p.f-text.on { width: 208px; background: #c8323f; }
.online_box p.f-tel:hover .num, .online_box p.f-text:hover .num,
.online_box p.f-tel.on .num, .online_box p.f-text.on .num { opacity: 1; }
/* 二维码：悬停左侧弹出图片 */
.online_box p .pop { position: absolute; right: 100%; top: 50%; display: block; width: 220px; height: 220px; max-width: none; padding: 10px; box-sizing: border-box; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); object-fit: contain; opacity: 0; visibility: hidden; transform: translate(14px, -50%); transition: opacity .28s ease, visibility .28s ease, transform .28s ease; }
.online_box p:hover .pop, .online_box p.on .pop { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.online_box p.f-qrcode:hover, .online_box p.f-qrcode.on { background: #c8323f; }
/* 置顶：滚动接近底部才出现 */
.online_box p.r_top { opacity: 0; visibility: hidden; }
.online_box p.r_top.show { opacity: 1; visibility: visible; }
.online_box p.r_top:hover { background: #c8323f; }
/* 展开后自上而下排列：偏移量由 JS 写入 --y，因此按钮数量可任意增删（间隔 54px，首个 48px） */
.online_box p { transform: translateY(var(--y, 48px)) scale(1); }
.online_box p:nth-of-type(1) { transition-delay: .06s; }
.online_box p:nth-of-type(2) { transition-delay: .10s; }
.online_box p:nth-of-type(3) { transition-delay: .14s; }
.online_box p:nth-of-type(4) { transition-delay: .18s; }
.online_box p:nth-of-type(5) { transition-delay: .22s; }
.online_box p:nth-of-type(n + 6) { transition-delay: .26s; }
/* 收起：向圆形按钮中心缩回 */
.online_box.closed p { transform: translateY(-3px) scale(.08); opacity: 0; pointer-events: none; }
/* 手机上保留悬浮客服栏：按钮略缩小以免遮挡内容，展开改为点击触发（无 hover，见 main.js） */
@media only screen and (max-width: 1024px) {
  .online_box { right: 8px; }
  .online_box p { width: 42px; height: 42px; }
  .online_box p svg { width: 22px; height: 22px; }
  .online_box p img.ico { width: 22px; height: 22px; }
  .online_box .r_open { width: 38px; height: 38px; }
  .online_box p.f-tel.on, .online_box p.f-text.on { width: 186px; }
  .online_box p .pop { width: 180px; height: 180px; }
}
.foot-button { display: none; position: fixed; left: 0; bottom: 0; width: 100%; background: #fff; box-shadow: 0 -2px 12px rgba(0, 0, 0, .12); z-index: 9998; }
.foot-button p { display: flex; }
.foot-button a { flex: 1; text-align: center; padding: 6px 0; color: #888; font-size: 12px; }
.foot-button a i, .foot-button a em { display: block; font-style: normal; font-size: 20px; line-height: 24px; }
.foot-button a i { display: none; }
.foot-button a.on { color: #0f6099; }
.foot-button a.on i { display: block; }
.foot-button a.on em { display: none; }
@media only screen and (max-width: 1024px) {
  .foot-button { display: block; }
  .footbox { padding-bottom: 56px; }
}

/* ================= 内页 ================= */
.container { padding: 50px 0 60px; overflow: hidden; }
.position { padding: 0 0 18px; color: #999; }
.position p { padding: 6px 0 12px 34px; background: url(../img/sy.png) 2px 8px no-repeat; border-bottom: 1px solid #0f6099; display: inline-block; }
.position a { color: #666; }
.position span { color: #0f6099; }
.content-wrap { overflow: hidden; }
.leftmain { width: 20.5%; max-width: 220px; float: left; position: relative; z-index: 2; }
.leftmain .column { margin-bottom: 20px; }
.leftmain .column .tit { background: #0f6099; color: #fff; padding: 12px 18px; font-size: 17px; font-weight: 600; text-align: center; }
.leftmain .column .list1 h2 a { display: block; font-size: 15px; padding: 10px 5px 10px 22px; border-bottom: 1px dotted #ddd; position: relative; color: #555; }
.leftmain .column .list1 h2 a::after { content: ""; width: 0; height: 0; border: 5px solid rgba(0, 0, 0, 0); border-left-color: #0f6099; position: absolute; left: 6px; top: 50%; margin-top: -5px; transition: all .5s ease; }
.leftmain .column .list1 h2.active a, .leftmain .column .list1 h2 a:hover { color: #fff; padding-left: 32px; background: #0f6099; }
.leftmain .column .list1 h2.active a::after, .leftmain .column .list1 h2 a:hover::after { border-left-color: #fff; }
.leftmain .column .text1 { border: 1px solid #eee; padding: 14px 12px; color: #666; line-height: 26px; font-size: 13px; }
.leftmain .column .text2 li { border-bottom: 1px dotted #ddd; padding-left: 20px; background: url(../img/newsico.png) 2px 10px no-repeat; }
.leftmain .column .text2 li a { display: block; padding: 9px 0; position: relative; color: #666; font-size: 13px; line-height: 22px; }
.leftmain .column .text2 li a:hover { color: #0f6099; }
.rightmain { width: 78%; float: right; position: relative; z-index: 1; padding-left: 5px; }
.page_title { overflow: hidden; position: relative; margin-bottom: 25px; }
.page_title::after { content: ""; width: 100%; height: 1px; background: #ddd; position: absolute; left: 0; bottom: 0; z-index: -1; }
.page_title p, .page_title a { font-size: 22px; line-height: 23px; padding: 13px 5px; border-bottom: 1px solid #0f6099; float: left; color: #0f6099; }
.article { font-size: 15px; line-height: 2; color: #444; }
.article p { margin-bottom: 14px; text-indent: 2em; }
.article img { max-width: 100%; height: auto; margin: 10px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; }
.article table th, .article table td { border: 1px solid #e3e8ee; padding: 10px 12px; line-height: 1.7; text-align: left; vertical-align: top; }
.article table th { background: #f2f7fb; color: #0f6099; font-weight: 600; white-space: nowrap; }
.article table tbody tr:nth-child(even) td { background: #fafcfe; }

/* ---- 联系信息块：标签按自身宽度左对齐，各行的值紧跟其后，不额外留空 ---- */
.article .info-list, .rt-box .info-list { margin: 14px 0; }
.article .info-row, .rt-box .info-row { display: flex; line-height: 2; }
.article .info-row .k, .rt-box .info-row .k { flex: none; color: #777; }
.article .info-row .k::after, .rt-box .info-row .k::after { content: "："; }
.article .info-row .v, .rt-box .info-row .v { flex: 1; min-width: 0; }
@media only screen and (max-width: 768px) {
  .article .info-row, .rt-box .info-row { flex-direction: column; line-height: 1.8; }
  .article .info-row .k, .rt-box .info-row .k { flex: none; text-align: left; }
}
@media only screen and (max-width: 768px) {
  .article table { font-size: 13px; }
  .article table th, .article table td { padding: 8px 9px; }
}
@media only screen and (max-width: 1024px) {
  .container { padding: 35px 0 45px; }
  /* 窄屏整块不显示侧栏（栏目导航 / 联系方式 / 新闻资讯），打开页面直接就是正文 */
  .leftmain { display: none; }
  .rightmain { width: 100%; float: none; padding-left: 0; }
  .page_title p, .page_title a { font-size: 20px; line-height: 24px; font-weight: 600; padding: 10px 5px; }
}

/* ---- 产品详情页 ---- */
.proshowpage .rightmain { padding-bottom: 20px; }
#picinfo { width: 100%; position: relative; padding-bottom: 35px; }
#picinfo .left { width: 49%; float: left; }
#picinfo .bigPic { width: 100%; padding-bottom: 75%; background: #fff; border: 1px solid #ddd; position: relative; cursor: crosshair; }
#picinfo .bigPic img { max-width: 100%; max-height: 100%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; }
#picinfo .bigPic .zoom-lens { position: absolute; left: 0; top: 0; display: none; z-index: 10; background: rgba(255, 255, 255, .35); border: 1px solid #bbb; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset; }
#picinfo .zoomWindow { position: absolute; left: 100%; top: 0; margin-left: 10px; width: 460px; height: 460px; max-width: 46vw; border: 1px solid #ddd; background: #fff center no-repeat; background-repeat: no-repeat; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); display: none; z-index: 99; overflow: hidden; }
@media only screen and (max-width: 768px) {
  #picinfo .zoomWindow, #picinfo .bigPic .zoom-lens { display: none !important; }
}
#picinfo .smallpic { width: 100%; padding-top: 10px; overflow: hidden; }
#picinfo .smallpic ul li { width: 62px; height: 62px; padding: 1px; background: #fff; border: 2px solid #e6e6e6; float: left; margin-right: 8px; }
#picinfo .smallpic ul li a { display: block; width: 100%; height: 100%; overflow: hidden; position: relative; }
#picinfo .smallpic ul li img { max-height: 100%; max-width: 100%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#picinfo .smallpic ul li.on, #picinfo .smallpic ul li:hover { border-color: #e53939; }
#picinfo .right { width: 48%; float: right; max-width: 700px; line-height: 20px; }
#picinfo .right .titl { font-size: 18px; padding: 10px 3px; font-weight: 600; }
#picinfo .right .text { padding: 10px 3px; margin: 5px 0; border-top: 2px solid #ccc; min-height: 120px; }
#picinfo .right .text .txt { width: 100%; padding: 5px 0; line-height: 24px; color: #555; }
#picinfo .right .text .txt span { float: left; }
#picinfo .right .text .txt a { color: #0f6099; }
#picinfo .right .btn { padding: 10px 0; overflow: hidden; }
#picinfo .right .btn p { width: 50%; padding-right: 15px; float: left; max-width: 150px; }
#picinfo .right .btn p a { display: block; width: 100%; background: #0f6099; font-size: 15px; color: #fff; line-height: 30px; padding: 5px; text-align: center; }
#picinfo .right .btn p a:hover { background: #cc3344; color: #fff; }
.proshowpage .detail { width: 100%; font-size: 15px; line-height: 1.8; min-height: 150px; padding: 10px 3px 20px; color: #444; }
.proshowpage .detail p { padding: 5px 0; }
.proshowpage .detail img { width: auto !important; max-width: 100% !important; height: auto !important; display: block; }
.proshowpage .detail table { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: 14px; }
.proshowpage .detail table th, .proshowpage .detail table td { border: 1px solid #e3e8ee; padding: 10px 12px; line-height: 1.7; text-align: left; vertical-align: top; }
.proshowpage .detail table th { background: #f2f7fb; color: #0f6099; font-weight: 600; white-space: nowrap; }
.proshowpage .detail table tbody tr:nth-child(even) td { background: #fafcfe; }
@media only screen and (max-width: 768px) {
  .proshowpage .detail table { font-size: 13px; }
  .proshowpage .detail table th, .proshowpage .detail table td { padding: 8px 9px; }
}
.proshowpage .page_btn { display: block; border-top: 1px dotted #ddd; margin-top: 10px; padding: 15px 3px 0; }
.proshowpage .page_btn div { line-height: 30px; color: #888; font-size: 14px; }
.proshowpage .page_btn a { max-width: none; color: #888; white-space: normal; }
.proshowpage .page_btn a:hover { color: #0f6099; }
.proshowpage .page_btn .back a { color: #0f6099; }
@media only screen and (max-width: 1250px) {
  #picinfo .right .titl { font-size: 16px; }
  .proshowpage .detail { padding-top: 0; }
}
@media only screen and (max-width: 768px) {
  .proshowpage .rightmain { padding-bottom: 10px; }
  #picinfo { padding-bottom: 5px; }
  #picinfo .left { width: 100%; }
  #picinfo .right { width: 100%; max-width: 100%; padding: 25px 0; }
  #picinfo .right .text { min-height: auto; }
  #picinfo .right .btn p { padding-right: 10px; }
}

/* ---- 列表页通用栅格 ---- */
.grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.grid .item { width: 25%; padding: 12px; flex-shrink: 0; }
.grid .item a { display: block; border: 1px solid #eee; background: #fff; height: 100%; transition: .3s; }
.grid .item .pic { width: 100%; height: 0; padding-bottom: 85%; overflow: hidden; position: relative; background: #f7f7f7; }
.grid .item .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.grid .item .txt { padding: 14px; text-align: center; }
.grid .item .txt h3 { font-size: 15px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.grid .item .txt p { color: #999; font-size: 13px; height: 40px; overflow: hidden; margin-top: 6px; }
.grid .item a:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); border-color: #0f6099; }
.grid .item a:hover .txt h3 { color: #0f6099; }
.grid .item a:hover .pic img { transform: scale(1.06); }
@media only screen and (max-width: 1024px) { .grid .item { width: 33.333%; } }
@media only screen and (max-width: 768px) { .grid .item { width: 50%; } }

/* ---- 分类切换 ---- */
.tabnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabnav a { padding: 8px 22px; border: 1px solid #e2e6ea; border-radius: 20px; color: #666; }
.tabnav a:hover, .tabnav a.on { background: #0f6099; border-color: #0f6099; color: #fff; }

/* ---- 新闻列表 ---- */
.news-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px dotted #ddd; align-items: flex-start; }
.news-item .pic { width: 220px; flex-shrink: 0; height: 0; padding-bottom: 13%; position: relative; overflow: hidden; border-radius: 8px; background: #f2f2f2; }
.news-item .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.news-item .con { flex: 1; min-width: 0; }
.news-item .con h3 { font-size: 17px; font-weight: 600; line-height: 28px; }
.news-item .con .txt { color: #888; font-size: 14px; margin: 8px 0; height: 48px; overflow: hidden; }
.news-item .con .meta { color: #aaa; font-size: 13px; }
.news-item:hover .con h3 { color: #0f6099; }
@media only screen and (max-width: 768px) {
  .news-item { flex-direction: column; }
  .news-item .pic { width: 100%; padding-bottom: 52%; }
}

/* ---- 详情页 ---- */
.detail-head { text-align: center; padding: 10px 0 20px; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.detail-head h1 { font-size: 24px; font-weight: 600; }
.detail-head .meta { color: #aaa; font-size: 13px; padding-top: 10px; }
.detail-pic { text-align: center; padding-bottom: 20px; }
.detail-pic img { max-width: 560px; }
.page_btn { display: block; border-top: 1px dotted #ddd; margin-top: 25px; padding: 15px 3px 0; font-size: 14px; color: #888; }
.page_btn div { line-height: 30px; }
.page_btn a { max-width: none; white-space: normal; color: #888; }
.page_btn a:hover { color: #0f6099; }
.page_btn .back a { color: #0f6099; }

/* ---- 分页 ---- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 30px 0 10px; flex-wrap: wrap; }
.pager a, .pager span.cur { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid #e6e6e6; background: #fff; color: #666; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.pager span.cur { background: #0f6099; border-color: #0f6099; color: #fff; }
.pager a:hover { border-color: #0f6099; color: #0f6099; }

/* ---- 视频 ---- */
.video-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.video-grid .item { width: 33.333%; padding: 12px; flex-shrink: 0; }
.video-grid .item a { display: block; border: 1px solid #eee; height: 100%; }
.video-grid .pic { width: 100%; height: 0; padding-bottom: 56%; position: relative; overflow: hidden; background: #000; }
.video-grid .pic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-grid .pic b { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(15, 96, 153, .85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; z-index: 2; }
.video-grid .txt { padding: 14px; }
.video-grid .txt h3 { font-size: 15px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.video-grid .item:hover .txt h3 { color: #0f6099; }
@media only screen and (max-width: 768px) { .video-grid .item { width: 50%; } }
.video-mask { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .75); z-index: 10000; display: none; align-items: center; justify-content: center; }
.video-mask.on { display: flex; }
.video-mask .box { width: 80%; max-width: 880px; background: #000; position: relative; }
.video-mask .box .ratio { padding-bottom: 56.25%; position: relative; }
.video-mask .box iframe, .video-mask .box video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; }
.video-mask .close { position: absolute; right: -40px; top: 0; color: #fff; font-size: 30px; cursor: pointer; }

/* ---- 提示 ---- */
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; }
.alert.ok { background: #eaf6ec; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert.err { background: #fdecea; color: #c62828; border: 1px solid #f5c6cb; }
.empty { padding: 60px 0; text-align: center; color: #999; }

/* ================= 后台 ================= */
.admin-body { background: #f0f2f5; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f6099, #1b73b3); }
.admin-login .box { width: 380px; background: #fff; border-radius: 10px; padding: 40px 36px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.admin-login h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.admin-login .sub { text-align: center; color: #999; font-size: 13px; margin-bottom: 24px; }
.admin-login .f { margin-bottom: 16px; }
.admin-login label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.admin-login input { width: 100%; padding: 11px 14px; border: 1px solid #dcdfe6; border-radius: 6px; }
.admin-login button { width: 100%; padding: 12px; background: #0f6099; color: #fff; border: 0; border-radius: 6px; font-size: 16px; cursor: pointer; }
.admin-login button:hover { background: #1b73b3; }
.admin-login .tip { text-align: center; color: #bbb; font-size: 12px; margin-top: 16px; }

.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 220px; background: #26303a; flex-shrink: 0; }
.admin-side .logo { padding: 20px; color: #fff; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-side .logo span { display: block; font-size: 12px; color: #8aa; font-weight: 400; margin-top: 4px; }
.admin-side .nav { padding: 10px 0; }
.admin-side .nav dt { color: #7a8896; font-size: 12px; padding: 14px 20px 6px; }
.admin-side .nav a { display: block; padding: 11px 20px; color: #c3ccd6; font-size: 14px; border-left: 3px solid transparent; }
.admin-side .nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.admin-side .nav a.on { background: rgba(15, 96, 153, .35); color: #fff; border-left-color: #1b73b3; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { height: 58px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.admin-top .r { display: flex; align-items: center; gap: 16px; color: #666; font-size: 13px; }
.admin-top .r a { color: #0f6099; }
.admin-content { padding: 22px; }
.admin-card { background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); margin-bottom: 20px; }
.admin-card h2 { font-size: 17px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.admin-card h2 small { font-size: 13px; font-weight: 400; color: #999; }

.stat-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-grid .s { flex: 1; min-width: 150px; background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.stat-grid .s b { display: block; font-size: 28px; color: #0f6099; }
.stat-grid .s span { color: #888; font-size: 13px; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { background: #fafafa; text-align: left; padding: 12px 10px; font-size: 13px; color: #666; border-bottom: 1px solid #eee; }
table.admin-table td { padding: 12px 10px; border-bottom: 1px solid #f2f2f2; font-size: 13px; vertical-align: middle; }
table.admin-table tr:hover td { background: #fafcfd; }
table.admin-table img.thumb { width: 60px; height: 44px; object-fit: cover; border-radius: 3px; }

.btn { display: inline-block; padding: 7px 16px; border-radius: 5px; font-size: 13px; cursor: pointer; border: 1px solid #dcdfe6; background: #fff; color: #555; }
.btn:hover { border-color: #0f6099; color: #0f6099; }
.btn-primary { background: #0f6099; border-color: #0f6099; color: #fff; }
.btn-primary:hover { background: #1b73b3; color: #fff; }
.btn-danger { color: #c62828; border-color: #f0c9c9; }
.btn-danger:hover { background: #c62828; border-color: #c62828; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; color: #555; margin-bottom: 7px; font-weight: 600; }
.form-row label .req { color: #c62828; }
.form-row input[type=text], .form-row input[type=number], .form-row input[type=password], .form-row textarea, .form-row select {
  width: 100%; max-width: 640px; padding: 10px 12px; border: 1px solid #dcdfe6; border-radius: 5px; background: #fff;
}
.form-row textarea { min-height: 110px; line-height: 1.8; }
.form-row textarea.editor { min-height: 320px; font-family: Consolas, "Microsoft YaHei", monospace; }
.form-row .tip { font-size: 12px; color: #999; margin-top: 6px; }
.img-field { display: flex; align-items: center; gap: 12px; max-width: 640px; }
.img-field input { flex: 1; }
.img-field .preview { width: 120px; height: 84px; border: 1px solid #eee; border-radius: 4px; object-fit: cover; background: #fafafa; }
.img-field video.preview { background: #111; object-fit: cover; }
.editor-bar { max-width: 640px; margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.editor-bar button { padding: 5px 12px; border: 1px solid #dcdfe6; background: #fff; border-radius: 4px; cursor: pointer; font-size: 12px; color: #555; }
.editor-bar button:hover { border-color: #0f6099; color: #0f6099; }
.editor-bar button.on { background: #0f6099; border-color: #0f6099; color: #fff; }
.editor-bar button.rt-b { font-weight: 700; }
.editor-bar button.rt-i { font-style: italic; }
.editor-bar button.rt-u { text-decoration: underline; }
.editor-bar button.rt-s { text-decoration: line-through; }
.editor-bar .rt-sep { width: 1px; height: 18px; background: #e2e6ea; margin: 0 3px; }
.editor-bar .rt-color { padding: 5px 6px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; font-size: 12px; color: #555; cursor: pointer; }

/* ---- 可视化编辑区 ---- */
.editor-wrap { max-width: 640px; }
.rt-box {
  min-height: 320px; padding: 12px 14px; border: 1px solid #dcdfe6; border-radius: 5px;
  background: #fff; font-size: 14px; line-height: 1.9; color: #444; outline: none; overflow: auto;
}
.rt-box:focus { border-color: #0f6099; box-shadow: 0 0 0 3px rgba(15, 96, 153, .08); }
.rt-box p { margin: 0 0 10px; }
.rt-box h2 { font-size: 20px; margin: 14px 0 10px; }
.rt-box h3 { font-size: 17px; margin: 12px 0 8px; }
.rt-box h4 { font-size: 15px; margin: 10px 0 6px; }
.rt-box img { max-width: 100%; height: auto; margin: 8px 0; }
.rt-box a { color: #0f6099; }
.rt-box ul, .rt-box ol { padding-left: 24px; margin: 0 0 10px; }
.rt-box ul li { list-style: disc; }
.rt-box ol li { list-style: decimal; }
.rt-box table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.rt-box th, .rt-box td { border: 1px solid #dcdfe6; padding: 8px 10px; text-align: left; vertical-align: top; }
.rt-box th { background: #f2f7fb; color: #0f6099; font-weight: 600; }
.rt-box hr { border: none; border-top: 1px solid #e3e8ee; margin: 12px 0; }
.rt-box:empty::before { content: "在此输入正文内容…"; color: #bbb; }

/* ---- 源码视图 ---- */
.rt-src-on .rt-box { display: none; }
.rt-src-on textarea.editor { display: block !important; font-family: Consolas, "Microsoft YaHei", monospace; white-space: pre; }
.admin-actions { padding-top: 10px; display: flex; gap: 10px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eef; color: #0f6099; }
.badge.new { background: #fdecea; color: #c62828; }
