/* ============================================================
 * CareMedix Healthcare - 全局样式
 * 设计参考：OMRON Healthcare Global（白底 + 蓝主色 + 大留白 + 生活方式 Banner）
 * ============================================================ */
:root {
  --om-blue: #0054a6;
  --om-blue-dark: #003c78;
  --om-blue-light: #e8f2fb;
  --om-accent: #e2231a;
  --el-color-primary: #0054a6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; color: #1a2b40; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- 顶部公告条 ---------- */
.announce { background: #003c78; color: #fff; font-size: 12px; text-align: center; padding: 8px 16px; letter-spacing: .3px; }
.announce a { text-decoration: underline; margin-left: 6px; }

/* ---------- 主导航 ---------- */
.site-header { background: #fff; border-bottom: 1px solid #e6ecf2; position: sticky; top: 0; z-index: 1000; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; cursor: pointer; }
.logo img { height: 56px; width: auto; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a { padding: 10px 16px; font-size: 14px; color: #1a2b40; font-weight: 500; border-radius: 4px; transition: .2s; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--om-blue); }
.nav-menu a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--om-blue); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; font-size: 14px; color: #1a2b40; cursor: pointer; padding: 8px 6px; display: flex; align-items: center; gap: 5px; }
.cart-badge { position: absolute; top: 0; right: -4px; background: var(--om-accent); color: #fff; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 8px; padding: 0 4px; }

/* ---------- Hero ---------- */
.hero { background: #f4f9fe; position: relative; overflow: hidden; }
.hero .container { display: flex; align-items: center; gap: 60px; padding-top: 60px; padding-bottom: 60px; }
.hero-copy { flex: 1; }
.hero-copy .kicker { color: var(--om-blue); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.hero-copy h1 { font-size: 46px; line-height: 1.18; color: #00305e; font-weight: 700; margin-bottom: 20px; }
.hero-copy p { font-size: 17px; color: #41556d; max-width: 560px; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 14px; }
.hero-art { flex: 1; display: flex; justify-content: center; }
.hero-art img { max-width: 100%; max-height: 420px; border-radius: 12px; object-fit: cover; }

/* ---------- 数据条 ---------- */
.figures { background: var(--om-blue); color: #fff; }
.figures .container { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 30px; padding-bottom: 30px; }
.figure { text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.figure:last-child { border-right: none; }
.figure .num { font-size: 34px; font-weight: 700; line-height: 1.2; }
.figure .label { font-size: 13px; opacity: .9; margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section.alt { background: #f7fafd; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head .eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--om-blue); font-weight: 700; }
.section-head h2 { font-size: 32px; color: #00305e; margin: 8px 0 10px; font-weight: 700; }
.section-head p { color: #5a6b80; font-size: 15px; max-width: 640px; }
.section-head.center p { margin: 0 auto; }

/* ---------- 解决方案分类 ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.solution-card { background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer; transition: .25s; box-shadow: 0 2px 14px rgba(0,48,94,.06); }
.solution-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,48,94,.14); }
.solution-card img { width: 100%; height: 220px; object-fit: contain; background: #fff; padding: 14px; box-sizing: border-box; }
.solution-card .body { padding: 22px; }
.solution-card h3 { font-size: 18px; color: #00305e; margin-bottom: 8px; }
.solution-card p { font-size: 13px; color: #6b7c90; line-height: 1.6; min-height: 42px; }
.solution-card .more { color: var(--om-blue); font-size: 13px; font-weight: 600; margin-top: 12px; display: inline-block; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; border-radius: 14px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; box-shadow: 0 2px 14px rgba(0,48,94,.06); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,48,94,.14); }
.product-card .thumb { height: 230px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 18px; cursor: pointer; }
.product-card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .pbody { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .tag { display: inline-block; font-size: 11px; color: var(--om-blue); background: var(--om-blue-light); padding: 3px 10px; border-radius: 20px; align-self: flex-start; margin-bottom: 10px; }
.product-card h3 { font-size: 15px; color: #1a2b40; line-height: 1.45; margin-bottom: 4px; cursor: pointer; min-height: 44px; }
.product-card .model { font-size: 12px; color: #8a99ab; margin-bottom: 10px; }
.product-card .price { font-size: 20px; color: var(--om-accent); font-weight: 700; margin-bottom: 14px; }
.product-card .price small { font-size: 12px; color: #9aa8b8; font-weight: 400; }
.product-card .actions { display: flex; gap: 8px; margin-top: auto; }
.product-card .actions .el-button { flex: 1; }

/* ---------- app 推广块 ---------- */
.promo { background: linear-gradient(120deg, #003c78, #0054a6); color: #fff; border-radius: 18px; padding: 54px 60px; display: flex; align-items: center; gap: 50px; }
.promo .text { flex: 1; }
.promo h2 { font-size: 32px; margin-bottom: 14px; }
.promo p { font-size: 15px; opacity: .92; max-width: 620px; margin-bottom: 22px; }
.promo .features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.promo .features span { font-size: 14px; }
.promo .art { flex: 0 0 300px; text-align: center; }
.promo .art img { max-width: 100%; border-radius: 12px; }

/* ---------- 理念块 ---------- */
.vision { text-align: center; padding: 76px 0; }
.vision h2 { font-size: 34px; color: #00305e; margin-bottom: 16px; }
.vision p { font-size: 16px; color: #5a6b80; max-width: 760px; margin: 0 auto 24px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0d2b4d; color: #c3d2e4; padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
.footer-grid .brand img { height: 58px; background: #fff; border-radius: 8px; padding: 6px; margin-bottom: 14px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid p { line-height: 1.9; }
.footer-grid a { display: block; padding: 3px 0; }
.footer-grid a:hover { color: #7fc0ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center; font-size: 12px; color: #8ea4c0; }

/* ---------- 详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
.detail-img { background: #f7fafd; border-radius: 14px; padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 460px; }
.detail-img img { max-width: 100%; max-height: 400px; object-fit: contain; }
.detail-info h1 { font-size: 30px; color: #00305e; line-height: 1.3; margin-bottom: 8px; }
.detail-info .model-no { color: #8a99ab; font-size: 14px; margin-bottom: 20px; }
.detail-info .detail-price { font-size: 32px; color: var(--om-accent); font-weight: 700; margin-bottom: 20px; }
.detail-info .desc { color: #5a6b80; font-size: 15px; margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 26px; }
.feature-list li { padding: 7px 0 7px 26px; position: relative; color: #33455c; font-size: 14px; }
.feature-list li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; background: var(--om-blue); border-radius: 50%; }
.stock-line { font-size: 14px; color: #5a6b80; margin-bottom: 20px; }

/* ---------- 表单 ---------- */
.page-banner { background: #f4f9fe; padding: 50px 0; text-align: center; }
.page-banner h1 { font-size: 36px; color: #00305e; }
.page-banner p { color: #5a6b80; margin-top: 8px; }
.form-card { max-width: 760px; margin: 44px auto; background: #fff; border-radius: 14px; padding: 40px; box-shadow: 0 4px 24px rgba(0,48,94,.08); }
.form-card h2 { color: #00305e; margin-bottom: 6px; }
.form-card .sub { color: #7a899e; font-size: 14px; margin-bottom: 28px; }

/* ---------- 购物车 ---------- */
.cart-item { display: flex; align-items: center; gap: 18px; padding: 18px; border-bottom: 1px solid #eef2f7; }
.cart-item img { width: 100px; height: 80px; object-fit: contain; }
.cart-item .info { flex: 1; }
.cart-item .info h4 { color: #1a2b40; font-size: 15px; }
.cart-item .info .model { color: #8a99ab; font-size: 12px; }
.cart-summary { background: #f7fafd; border-radius: 12px; padding: 24px; margin-top: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.cart-summary .total { font-size: 20px; font-weight: 700; color: var(--om-accent); }

/* ---------- 后台 ---------- */
.admin { min-height: 100vh; background: #f0f4f8; }
.admin-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 230px; background: #0d2b4d; color: #fff; z-index: 100; }
.admin-logo { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; font-weight: 700; }
.admin-logo img { height: 38px; background: #fff; border-radius: 6px; padding: 4px; }
.admin-menu { padding: 16px 12px; }
.admin-menu .item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; cursor: pointer; color: #b9c9de; font-size: 14px; margin-bottom: 4px; }
.admin-menu .item:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu .item.active { background: var(--om-blue); color: #fff; }
.admin-menu .group-title { font-size: 11px; color: #6f86a5; padding: 14px 14px 6px; letter-spacing: 1px; }
.admin-main { margin-left: 230px; min-height: 100vh; }
.admin-header { height: 64px; background: #fff; border-bottom: 1px solid #e4e9f0; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.admin-header h3 { font-size: 18px; color: #00305e; }
.admin-content { padding: 26px 28px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 2px 12px rgba(20,40,70,.06); display: flex; align-items: center; gap: 16px; }
.stat-card .icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.stat-card .num { font-size: 28px; font-weight: 700; color: #1a2b40; line-height: 1.2; }
.stat-card .label { font-size: 13px; color: #8a99ab; }
.panel { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 2px 12px rgba(20,40,70,.06); }
.panel-title { font-size: 16px; color: #00305e; font-weight: 600; margin-bottom: 18px; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #003c78, #0054a6); }
.login-box { width: 400px; background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-box .login-logo { text-align: center; margin-bottom: 18px; }
.login-box .login-logo img { height: 64px; }
.login-box h2 { text-align: center; color: #00305e; font-size: 24px; margin-bottom: 6px; }
.login-box .tip { text-align: center; color: #8a99ab; font-size: 13px; margin-bottom: 28px; }

@media (max-width: 1000px) {
  .solution-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 32px; }
  .hero-art { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
