/* =========================================================================
 * Mimo 网站 · 全局样式（创新 / 年轻 / 有活力）
 * ========================================================================= */

:root {
  --coral: #FF6B6B;
  --mint:  #4ECDC4;
  --sun:   #FFD93D;
  --grape: #6C63FF;
  --ink:   #23232B;
  --ink-soft: #5b5b66;
  --cream: #FFF8F0;
  --paper: #ffffff;
  --line:  #efe7dc;

  --grad-warm: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%);
  --grad-cool: linear-gradient(135deg, #4ECDC4 0%, #6C63FF 100%);
  --shadow-sm: 0 6px 18px rgba(35,35,43,.08);
  --shadow-md: 0 14px 40px rgba(35,35,43,.14);
  --radius:    22px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --font-head: "Mochiy Pop One", "Hiragino Sans", "PingFang SC", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 装饰：漂浮色块 ---------- */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(2px); opacity: .55; z-index: 0; pointer-events: none;
}
.blob.b1 { width: 220px; height: 220px; background: var(--grad-warm); top: -60px; right: -40px; }
.blob.b2 { width: 160px; height: 160px; background: var(--grad-cool); bottom: -50px; left: -30px; }

/* ============================ 顶部导航 ============================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,240,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand .logo { width: auto; height: 36px; border-radius: 10px; object-fit: contain;
  vertical-align: middle; }
.brand .name { font-size: 17px; letter-spacing: .3px; }
.brand .name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--ink-soft); letter-spacing: 1px; }

.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-soft);
  transition: .2s; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); background: #fff; }
.nav-links a.active { color: #fff; background: var(--grape); }

/* 语言切换 */
.lang { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font-body);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--ink-soft);
  transition: .2s;
}
.lang button.active { background: var(--ink); color: #fff; }

.nav-toggle { display: none; }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s; font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 10px 24px rgba(255,107,107,.35); }
.btn-cool   { background: var(--grad-cool); color: #fff; box-shadow: 0 10px 24px rgba(108,99,255,.3); }
.btn-ghost  { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
/* 邮件按钮信封图标：用 ::before 伪元素挂内联 SVG，避免被 main.js setText 的文本替换清空 */
#contactBtn::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================ Hero ============================ */
.hero { position: relative; padding: 70px 0 56px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--grape); background: rgba(108,99,255,.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(34px, 5.4vw, 60px); line-height: 1.18;
  margin-bottom: 18px; letter-spacing: .5px;
}
.hero h1 .hl { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--ink-soft); max-width: 30em; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero 视觉：产品漂浮卡 */
.hero-visual { position: relative; height: 360px; }
.float-card {
  position: absolute; background: #fff; border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; font-weight: 700;
  animation: float 5s ease-in-out infinite;
}
.float-card .emo { font-size: 26px; }
.float-card.c1 { top: 10px; left: 6%; animation-delay: 0s; }
.float-card.c2 { top: 120px; right: 4%; animation-delay: .8s; }
.float-card.c3 { bottom: 30px; left: 22%; animation-delay: 1.6s; }
.float-card.c4 { bottom: 90px; right: 20%; animation-delay: 2.3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================ 区块通用 ============================ */
.section { padding: 64px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--mint); }
.section-head h2 { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 38px); margin-top: 8px; }
.section-head p { color: var(--ink-soft); margin-top: 8px; }

/* ============================ 产品网格 ============================ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-thumb {
  aspect-ratio: 4/3; display: grid; place-items: center; font-size: 54px; position: relative; color: #fff;
}
.product-thumb .cat-tag {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.product-body .tagline { font-size: 13px; color: var(--ink-soft); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-family: var(--font-head); color: var(--coral); font-size: 17px; }
.product-foot .more { font-size: 13px; font-weight: 700; color: var(--grape); }

/* 检索 / 筛选 */
.toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.search-box { position: relative; width: 100%; }
.search-box input {
  width: 100%; padding: 15px 18px 15px 46px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 15px; font-family: var(--font-body); background: #fff; outline: none; transition: .2s;
}
.search-box input:focus { border-color: var(--grape); box-shadow: 0 0 0 4px rgba(108,99,255,.12); }
.search-box .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-label { align-self: center; font-size: 12.5px; color: var(--ink-soft); margin-right: 2px; }
.chip-sm { padding: 7px 14px; font-size: 13px; }
.p-date { font-size: 12px; color: var(--ink-soft); opacity: .8; margin-top: 4px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; font-family: var(--font-body); transition: .18s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { color: #fff; border-color: transparent; }
.result-count { font-size: 13px; color: var(--ink-soft); }
.empty { text-align: center; color: var(--ink-soft); padding: 60px 0; font-size: 15px; }

/* ============================ 服务 ============================ */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; gap: 18px; align-items: flex-start; transition: .18s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card .icon {
  width: 58px; height: 58px; flex: none; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; background: var(--grad-cool); box-shadow: var(--shadow-sm);
}
.service-card h3 { font-size: 18px; margin-bottom: 6px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ============================ 关于 ============================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.about-card { background: #fff; border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-card .name { font-family: var(--font-head); font-size: 22px; margin-bottom: 14px; }
.about-card p { color: var(--ink-soft); margin-bottom: 12px; font-size: 15px; }
.about-visual { position: relative; min-height: 320px; border-radius: var(--radius); background: var(--grad-cool); overflow: hidden; display: grid; place-items: center; padding-bottom: 72px; }
.about-visual .big { font-size: 90px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); }
.about-visual .tag { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; color: #fff; font-weight: 700; font-size: 14px; background: rgba(0,0,0,.22); padding: 8px 14px; border-radius: 999px; }

/* ============================ 联系 ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-info h3 { font-family: var(--font-head); margin-bottom: 18px; font-size: 20px; }
.contact-info .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14.5px; }
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .row .k { color: var(--sun); font-weight: 700; min-width: 64px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.contact-card p { color: var(--ink-soft); }

/* ============================ 产品详情页 ============================ */
.detail-topbar { margin-bottom: 22px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; transition: .2s;
}
.back-link:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.detail-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px;
}
.detail-media {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1/1; display: grid; place-items: center; min-height: 300px;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .cat-tag {
  position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.28); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 1;
}
.detail-emoji { font-size: 96px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.18)); }

.detail-info { display: flex; flex-direction: column; gap: 16px; }
.detail-info h1 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.detail-tagline { color: var(--ink-soft); font-size: 15.5px; }
.detail-price-main { font-family: var(--font-head); color: var(--coral); font-size: 34px; }

.detail-block { display: flex; flex-direction: column; gap: 8px; }
.detail-label { font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--mint); }
.detail-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.9; white-space: pre-line; }

.price-table { display: flex; flex-direction: column; gap: 6px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 14px;
}
.price-row .cur { color: var(--ink-soft); font-size: 13px; }
.price-row .val { font-weight: 700; font-family: var(--font-head); }
.price-row.main { background: #fff; border-color: var(--grape); box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.price-row.main .val { color: var(--grape); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.detail-inquiry { align-self: flex-start; margin-top: 4px; }

.detail-empty {
  text-align: center; padding: 70px 0; display: flex; flex-direction: column; gap: 18px; align-items: center;
  color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.detail-date { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.detail-related { margin-top: 48px; }.detail-related h2 { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 20px; }

/* ============================ 页脚（腾讯风格：浅底 · 居中 · 三行） ============================ */
.footer { background: #faf9f7; border-top: 1px solid var(--line); color: #8f8a82; padding: 10px 0 10px; margin-top: 48px; text-align: center; }
.footer .wrap { display: block; }
/* 第一行：链接（以 | 分隔） */
.footer .f-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 16px; }
.footer .f-links a { color: #3b3b42; font-size: 14px; text-decoration: none; transition: color .15s; }
.footer .f-links a:hover { color: var(--coral); }
.footer .f-links a:not(:last-child)::after { content: "|"; margin: 0 15px; color: #d9d3ca; font-weight: 300; }
/* 第二行：ICP 备案号（独立于 footCopy，避免被 main.js 的 textContent 覆写） */
.footer .beian { font-size: 13px; color: #9a948c; margin-bottom: 7px; }
.footer .beian a { color: #9a948c; text-decoration: none; }
.footer .beian a:hover { color: #3b3b42; text-decoration: underline; }
/* 第三行：版权 */
.footer .copy { font-size: 13px; color: #9a948c; }

/* ============================ 进场动画 ============================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--cream); flex-direction: column; gap: 4px;
    padding: 14px 22px 20px; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: .25s; }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; }
  .lang { margin-left: 0; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
