/* ============================================================
   mamicase.com 企业首页样式（/）
   依赖 /assets/css/style.css + /assets/css/site.css
   所有类名以 hm- 前缀，避免影响其它页面
   ============================================================ */

/* ---------------- Hero ---------------- */
.hm-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #0a1120 0%, #101c33 42%, #1a2350 72%, #0d3b2c 100%);
  padding: 54px 22px 112px;
}
.hm-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 84% -12%, rgba(6, 199, 85, .30), transparent 62%),
    radial-gradient(560px 300px at 4% 108%, rgba(79, 70, 229, .34), transparent 66%);
}
.hm-hero-in {
  position: relative; z-index: 1; max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 34px; align-items: center;
}
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #4ade80; background: rgba(6, 199, 85, .12);
  border: 1px solid rgba(6, 199, 85, .32); border-radius: 999px; padding: 5px 12px;
}
.hm-hero h1 { font-size: 40px; line-height: 1.28; margin: 16px 0 14px; letter-spacing: -.02em; }
.hm-hero h1 .hl { color: #4ade80; }
.hm-lead { font-size: 14.5px; line-height: 2.05; color: rgba(255, 255, 255, .8); max-width: 580px; margin: 0 0 22px; }
.hm-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 11px; font-size: 14px; font-weight: 700; transition: .16s; }
.hm-btn-green { background: #06c755; color: #fff; box-shadow: 0 12px 26px -14px rgba(6, 199, 85, .9); }
.hm-btn-green:hover { background: #05b04b; color: #fff; text-decoration: none; }
.hm-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .24); }
.hm-btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.hm-btn-dark { background: #fff; color: var(--ink); }
.hm-btn-dark:hover { background: #f1f5f9; color: var(--ink); text-decoration: none; }
.hm-hero-note { font-size: 11.5px; color: rgba(255, 255, 255, .5); margin: 14px 0 0; }

/* 右侧品类马赛克 */
.hm-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-mo {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 14px 14px 13px; backdrop-filter: blur(6px);
}
.hm-mo:nth-child(2n) { transform: translateY(14px); }
.hm-mo span { display: block; font-size: 21px; line-height: 1; margin-bottom: 9px; }
.hm-mo b { display: block; font-size: 12.5px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.hm-mo i { display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .55); margin-top: 3px; }

/* ---------------- 容器与数据条 ---------------- */
.hm-wrap { max-width: 1040px; margin: -72px auto 56px; padding: 0 18px; position: relative; z-index: 2; }

.hm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 18px;
}
.hm-stat { padding: 20px 14px; text-align: center; border-right: 1px solid var(--line-soft); }
.hm-stat:last-child { border-right: none; }
.hm-stat b { display: block; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; }
.hm-stat b em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.hm-stat span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }

/* ---------------- 通用区块 ---------------- */
.hm-block {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 30px 32px; margin-bottom: 18px;
  scroll-margin-top: 74px;
}
.hm-eyebrow-2 { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: #059669; text-transform: uppercase; }
.hm-h2 { font-size: 23px; font-weight: 800; color: var(--ink); margin: 6px 0 8px; letter-spacing: -.01em; line-height: 1.4; }
.hm-sub { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin: 0 0 22px; max-width: 740px; }

/* ---------------- 会社紹介 ---------------- */
.hm-about { display: grid; grid-template-columns: 1.24fr .76fr; gap: 28px; align-items: start; }
.hm-about p { font-size: 14px; line-height: 2.05; color: var(--ink-2); margin: 0 0 13px; }
.hm-about p:last-child { margin-bottom: 0; }
.hm-about p b { color: var(--ink); font-weight: 800; }
.hm-points { display: grid; gap: 10px; }
.hm-point { display: flex; gap: 11px; background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.hm-point .pi { font-size: 17px; line-height: 1.35; }
.hm-point b { display: block; font-size: 13px; color: var(--ink); }
.hm-point span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.65; margin-top: 2px; }

/* ---------------- 商品分类 ---------------- */
.hm-cat-group { margin-bottom: 22px; }
.hm-cat-group:last-child { margin-bottom: 0; }
.hm-cat-h {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13px; font-weight: 800; color: var(--ink);
  margin: 0 0 11px; padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.hm-cat-h em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #15803d; background: #ecfdf5; border-radius: 999px; padding: 3px 9px; }
.hm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hm-cat { border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 13px 12px; background: #fff; transition: .15s; }
.hm-cat:hover { border-color: #bbf7d0; background: #f7fdf9; transform: translateY(-1px); box-shadow: var(--shadow); }
.hm-cat .ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; background: linear-gradient(135deg, #f0fdf4, #eef2ff); margin-bottom: 9px;
}
.hm-cat b { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.hm-cat span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }

/* ---------------- 选ばれる理由 ---------------- */
.hm-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hm-why-item { background: linear-gradient(180deg, #fbfdff, #fff); border: 1px solid var(--line-soft); border-radius: 13px; padding: 16px 16px 15px; }
.hm-why-item .n { font-size: 10.5px; font-weight: 800; color: var(--brand); letter-spacing: .12em; }
.hm-why-item b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); margin: 7px 0 5px; }
.hm-why-item p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }

/* ---------------- 小売 / 卸売 ---------------- */
.hm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hm-pane { border-radius: 16px; padding: 22px 22px 20px; border: 1px solid var(--line-soft); background: #fff; }
.hm-pane .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #15803d; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.hm-pane h3 { font-size: 17px; margin: 0 0 3px; color: var(--ink); }
.hm-pane .ph { font-size: 11.5px; color: var(--muted); margin: 0 0 8px; }
.hm-pane ul { list-style: none; margin: 10px 0 18px; padding: 0; }
.hm-pane li { font-size: 12.5px; color: var(--ink-2); line-height: 1.9; padding-left: 20px; position: relative; }
.hm-pane li::before { content: "✓"; position: absolute; left: 2px; color: #16a34a; font-weight: 800; }
.hm-pane .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-pane.dark { background: linear-gradient(155deg, #101828, #1a2745 58%, #0c3a2b); border-color: transparent; color: #fff; }
.hm-pane.dark h3 { color: #fff; }
.hm-pane.dark .ph { color: rgba(255, 255, 255, .6); }
.hm-pane.dark .tag { color: #6ee7b7; background: rgba(6, 199, 85, .16); border: 1px solid rgba(6, 199, 85, .3); }
.hm-pane.dark li { color: rgba(255, 255, 255, .84); }
.hm-pane.dark li::before { color: #4ade80; }

/* ---------------- 流程 ---------------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hm-step { position: relative; background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 13px; padding: 16px 15px; }
.hm-step .sn { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.hm-step b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.hm-step p { font-size: 11.5px; color: var(--muted); line-height: 1.75; margin: 0; }
.hm-step::after { content: "›"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 18px; font-weight: 700; }
.hm-step:last-child::after { display: none; }

/* ---------------- 公告条 ---------------- */
.hm-note-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px;
  padding: 11px 15px; font-size: 12.5px; color: #991b1b; margin-bottom: 18px;
}
.hm-note-bar b { font-weight: 800; }
.hm-note-bar a { margin-left: auto; color: #b91c1c; font-weight: 800; white-space: nowrap; }

/* ---------------- 折叠详情 ---------------- */
.hm-det { border: 1px solid var(--line-soft); border-radius: 12px; margin: 10px 0; background: #fff; overflow: hidden; }
.hm-det > summary {
  cursor: pointer; padding: 12px 15px; font-size: 13px; font-weight: 700; color: var(--ink);
  background: #f8fafc; list-style: none; display: flex; align-items: center; gap: 8px;
}
.hm-det > summary::-webkit-details-marker { display: none; }
.hm-det > summary::after { content: "＋"; margin-left: auto; color: var(--muted); font-weight: 700; }
.hm-det[open] > summary::after { content: "−"; }
.hm-det > .det-body { padding: 14px 16px 16px; }

/* ---------------- 结尾 CTA ---------------- */
.hm-cta-band {
  position: relative; overflow: hidden; border-radius: 18px; padding: 34px 32px; color: #fff;
  background: linear-gradient(150deg, #0a1120, #12203a 55%, #0d3b2c);
  box-shadow: var(--shadow-lg); margin-bottom: 18px; scroll-margin-top: 74px;
}
.hm-cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 240px at 88% 0%, rgba(6, 199, 85, .28), transparent 60%); }
.hm-cta-band h2 { font-size: 22px; margin: 0 0 8px; position: relative; z-index: 1; }
.hm-cta-band p { font-size: 13px; color: rgba(255, 255, 255, .76); line-height: 1.95; margin: 0 0 18px; max-width: 660px; position: relative; z-index: 1; }
.hm-cta-band .acts { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hm-hero-in { grid-template-columns: 1fr; gap: 26px; }
  .hm-mosaic { grid-template-columns: repeat(3, 1fr); }
  .hm-mo:nth-child(2n) { transform: none; }
  .hm-about { grid-template-columns: 1fr; }
  .hm-why { grid-template-columns: repeat(2, 1fr); }
  .hm-split { grid-template-columns: 1fr; }
  .hm-steps { grid-template-columns: repeat(2, 1fr); }
  .hm-step::after { display: none; }
}
@media (max-width: 640px) {
  .hm-hero { padding: 36px 16px 96px; }
  .hm-hero h1 { font-size: 27px; }
  .hm-lead { font-size: 13.5px; line-height: 1.95; }
  .hm-wrap { padding: 0 14px; margin-top: -64px; }
  .hm-block { padding: 22px 17px; border-radius: 14px; }
  .hm-h2 { font-size: 19px; }
  .hm-stats { grid-template-columns: 1fr 1fr; }
  .hm-stat { border-bottom: 1px solid var(--line-soft); }
  .hm-stat:nth-child(2) { border-right: none; }
  .hm-stat:nth-child(3), .hm-stat:nth-child(4) { border-bottom: none; }
  .hm-mosaic { grid-template-columns: 1fr 1fr; }
  .hm-why { grid-template-columns: 1fr; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-cats { grid-template-columns: 1fr 1fr; }
  .hm-cta-band { padding: 26px 18px; }
  .hm-note-bar a { margin-left: 0; }
}

/* ============================================================
   2026-10-22：首页改版 —— 首屏联络卡 / 停用警示条 / 联络专区
   ============================================================ */

/* ---------------- 首屏右：最新联络卡 ---------------- */
.hc-hero-card {
  background: #fff; border-radius: 18px; padding: 16px 16px 14px;
  box-shadow: 0 26px 60px -30px rgba(2, 6, 23, .85);
  border: 1px solid rgba(255, 255, 255, .5);
}
.hc-card-head {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  font-size: 12px; font-weight: 800; color: var(--ink); margin-bottom: 12px;
}
.hc-card-head em {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: #b91c1c;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 999px; padding: 2px 8px;
}
.hc-mini {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  border: 1px solid var(--line-soft); border-radius: 13px; padding: 11px 12px;
  background: #f8fafc; transition: .15s; margin-bottom: 9px;
}
.hc-mini:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.hc-mini.line { border-color: #bbf7d0; background: #f0fdf4; }
.hc-mini.wx { border-color: #a7f3d0; background: #ecfdf5; }
.hc-mini img { width: 76px; height: 76px; flex: none; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .06); background: #fff; cursor: zoom-in; }
.hc-mini-t { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.hc-mini-id { font-size: 22px; font-weight: 900; color: #15803d; line-height: 1.25; font-family: ui-monospace, Menlo, Consolas, monospace; }
.hc-mini-d { font-size: 11px; font-weight: 700; color: #b91c1c; margin-top: 3px; }
.hc-card-foot { text-align: center; padding-top: 4px; }
.hc-card-foot a { font-size: 11.5px; font-weight: 700; color: var(--brand); }

.hc-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.hc-trust span {
  font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 5px 11px;
}

/* ---------------- 旧 LINE 停用警示条 ---------------- */
.hc-warn {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, #fef2f2, #fff5f5);
  border: 1.5px solid #fca5a5; border-left: 5px solid #dc2626;
  border-radius: 13px; padding: 14px 16px; margin: 0 0 16px;
  box-shadow: 0 10px 26px -22px rgba(220, 38, 38, .9);
}
.hc-warn .hw-ico { font-size: 20px; line-height: 1; flex: none; }
.hc-warn .hw-txt { flex: 1; min-width: 220px; font-size: 12.5px; line-height: 1.85; color: #7f1d1d; }
.hc-warn .hw-txt b { color: #b91c1c; }
.hc-warn .hw-txt code {
  font-size: 14px; font-weight: 900; color: #b91c1c; background: #fff;
  border: 1px solid #fecaca; border-radius: 6px; padding: 1px 7px; letter-spacing: .02em;
}
.hc-warn .hw-btn {
  flex: none; background: #dc2626; color: #fff; font-size: 12px; font-weight: 800;
  padding: 9px 14px; border-radius: 9px; text-decoration: none; white-space: nowrap;
}
.hc-warn .hw-btn:hover { background: #b91c1c; color: #fff; text-decoration: none; }

/* ---------------- 联络专区 ---------------- */
.hc-quick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.hc-q3 {
  display: flex; gap: 10px; align-items: flex-start; background: #f8fafc;
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 14px; text-decoration: none;
}
.hc-q3:hover { text-decoration: none; border-color: #bbf7d0; background: #f7fdf9; }
.hc-q3 .q3-ico { font-size: 17px; line-height: 1.3; flex: none; }
.hc-q3 b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }
.hc-q3 span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.7; word-break: break-all; }

/* ---------------- 会社紹介（改版） ---------------- */
.hc-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 20px; }
.hc-num { background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 12px; text-align: center; }
.hc-num b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hc-num b em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.hc-num span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ---------------- 姐妹站精简 ---------------- */
.hc-sister-lead { font-size: 13px; color: var(--ink-2); line-height: 2; margin: 0 0 14px; }
.hc-link-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 12.5px; font-weight: 800; color: var(--brand); }

@media (max-width: 900px) {
  .hc-hero-card { max-width: 460px; }
  .hc-quick3 { grid-template-columns: 1fr; }
  .hc-numbers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hc-mini img { width: 66px; height: 66px; }
  .hc-mini-id { font-size: 19px; }
  .hc-warn { padding: 12px 13px; }
  .hc-warn .hw-btn { width: 100%; text-align: center; }
}
