/* SKAIS TEC MEDICAL — 上海开圣电子科技有限公司 全站样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; color: #333; background: #ececec; font-size: 14px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; background: #fff; }

/* 顶部 logo 条 */
.topbar { display: flex; align-items: center; gap: 22px; padding: 22px 30px; border-bottom: 3px solid #b3141a; }
.topbar .logo img { height: 56px; }
.topbar .company { font-size: 30px; font-weight: 700; color: #333; letter-spacing: 1px; }

.layout { display: flex; align-items: flex-start; }

/* 侧栏 */
.sidebar { width: 210px; flex: 0 0 210px; padding: 24px 18px 40px; border-right: 1px solid #e5e5e5; }
.sidebar h3 { font-size: 16px; color: #333; padding-bottom: 10px; margin: 22px 0 6px; border-bottom: 1px solid #ccc; }
.sidebar h3:first-child { margin-top: 0; }
.menu { list-style: none; }
.menu > li > a { display: block; padding: 9px 4px; font-size: 15px; color: #555; border-bottom: 1px dotted #ddd; }
.menu .sub { list-style: none; }
.menu .sub > li > a { display: block; padding: 8px 4px 8px 18px; color: #777; border-bottom: 1px dotted #e3e3e3; }
.menu a:hover { color: #b3141a; }
.contact p { margin: 12px 0; color: #777; }
.contact .lab { color: #999; }
.contact i { color: #b3141a; width: 16px; margin-right: 6px; text-align: center; }

/* 主内容 */
.main { flex: 1; min-width: 0; padding: 26px 34px 40px; }
.intro h2 { color: #b3141a; font-size: 20px; margin-bottom: 12px; }
.intro p { color: #555; margin-bottom: 8px; }
.intro .hl { color: #2a7fc4; }

.sec-title { background: #d9d2c2; color: #4a4332; font-size: 16px; font-weight: 700; padding: 9px 16px; margin: 34px 0 22px; border-radius: 2px; }

.pq-intro { margin-bottom: 6px; color: #555; }
.pq-intro .red { color: #c0202a; }
.pq-links a { display: inline-block; color: #1a9a9a; margin: 10px 22px 6px 0; }

/* 产品网格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border: 1px solid #e5e5e5; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-2px); }
.card .thumb { height: 180px; display: flex; align-items: center; justify-content: center; background: #fafafa; overflow: hidden; }
.card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.card .cap { text-align: center; padding: 10px 6px; color: #1a9a9a; font-size: 15px; border-top: 1px solid #eee; }

/* 页脚 */
.footer { text-align: center; color: #999; padding: 22px 10px; border-top: 1px solid #e5e5e5; background: #fafafa; font-size: 13px; line-height: 1.9; }
.footer a { color: #888; }
.footer a:hover { color: #b3141a; }
.foot-sep { color: #ccc; margin: 0 8px; }

@media (max-width: 820px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; flex: none; border-right: none; border-bottom: 1px solid #e5e5e5; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .topbar .company { font-size: 22px; }
}
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }

/* 当前菜单高亮 */
.menu a.active { color: #b3141a; font-weight: 700; }

/* 内页 */
.page-h { background: #d9d2c2; color: #4a4332; font-size: 17px; font-weight: 700; padding: 9px 16px; margin: 0 0 22px; border-radius: 2px; }
.page-body { color: #555; line-height: 1.95; font-size: 14px; }
.page-body h2 { color: #b3141a; font-size: 18px; margin: 22px 0 10px; }
.page-body h3 { color: #b3141a; font-size: 16px; margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid #b3141a; }
.page-body p { margin: 8px 0; }
.page-body a { color: #1a9a9a; }
.page-body img { border: 1px solid #eee; border-radius: 3px; margin: 6px 12px 6px 0; max-width: 100%; height: auto; }
.page-body table { border-collapse: collapse; margin: 12px 0; }
.page-body td, .page-body th { border: 1px solid #ddd; padding: 7px 14px; }
.page-body th { text-align: left; background: #f3f1ec; color: #4a4332; font-weight: 700; }
.page-body tbody tr:hover { background: #fafafa; }
/* 存档的产品块：图左 文右，逐行排列 */
.page-body .newsCnt { float: none !important; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px dashed #e5e5e5; }
.page-body .newsCnt img { flex: 0 0 auto; }
.page-body .placeholder { color: #999; padding: 24px 0; }
@media (max-width: 560px) { .page-body .newsCnt { gap: 10px; } }
.page-body ol, .page-body ul { margin: 8px 0 12px 24px; }
.page-body li { margin: 4px 0; }
.page-body h4 { color: #333; font-size: 15px; font-weight: 700; margin: 14px 0 6px; }
/* 公式（纯 CSS，无需 MathJax/CDN） */
.formula { text-align: center; font-size: 19px; color: #222; margin: 20px 0; font-family: "Cambria Math", "Times New Roman", Georgia, serif; }
.formula i { font-style: italic; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 5px; font-size: 0.92em; }
.frac > span { display: block; padding: 1px 6px; line-height: 1.25; }
.frac > span:first-child { border-bottom: 1.5px solid #333; }
.formula sub { font-size: 0.7em; }
