/* 喵喵发卡网 - 公共样式 */
:root{
  --bg:#ffffff;
  --ink:#000000;
  --rule:#000000;
  --accent:#e60012;
  --yellow:#ffd23f;
  --muted:#666;
  --bw:3px;
  --spring:cubic-bezier(.34,1.56,.64,1);
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","WenQuanYi Micro Hei",-apple-system,"Segoe UI",Roboto,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }

/* 按钮通用 */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 24px;
  background:var(--bg); color:var(--ink);
  border:var(--bw) solid var(--rule);
  border-radius:10px;
  font-weight:800; font-size:15px; cursor:pointer;
  box-shadow:4px 4px 0 var(--rule);
  transition:transform .28s var(--spring), box-shadow .28s ease;
  user-select:none; letter-spacing:.02em;
  text-decoration:none;
}
.btn:hover{ transform:translate(-2px,-3px) scale(1.04); box-shadow:6px 6px 0 var(--rule); }
.btn:active{ transform:translate(2px,1px) scale(.94); box-shadow:1px 1px 0 var(--rule); }
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:var(--ink); color:#fff; }
.btn-danger{ background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:4px 4px 0 rgba(0,0,0,.4); }
.btn-sm{ padding:7px 14px; font-size:13px; box-shadow:3px 3px 0 var(--rule); }
.btn-sm:hover{ box-shadow:4px 4px 0 var(--rule); }

/* 顶栏 */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap;
  padding:16px 24px;
  border-bottom:var(--bw) solid var(--rule);
  position:sticky; top:0; background:var(--bg); z-index:50;
}
.logo{ display:flex; align-items:center; gap:10px; font-weight:900; font-size:20px; cursor:pointer; }
.logo-mark{
  width:38px; height:38px; border-radius:50%;
  background:var(--ink); color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:900;
  box-shadow:2px 2px 0 rgba(0,0,0,.2);
}
.nav{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.nav-btn{ padding:9px 18px; font-size:14px; box-shadow:none; border-width:2px; }
.nav-btn:hover{ transform:translateY(-2px); box-shadow:3px 3px 0 var(--rule); }
.nav-btn.active{ background:var(--ink); color:#fff; }

/* 容器 */
.wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }

/* 节标题 */
.sec-title{
  text-align:center; font-size:clamp(22px,4.5vw,30px); font-weight:900;
  margin:8px 0 26px; position:relative; display:inline-block;
}
.sec-title::after{
  content:""; display:block; height:6px; width:64%; margin:8px auto 0;
  background:var(--ink); border-radius:3px;
}
.sec-wrap{ text-align:center; padding:40px 0 10px; }

/* 底部 */
footer{ border-top:var(--bw) solid var(--rule); margin-top:50px; padding:28px 20px 24px; text-align:center; }
.disclaimer{
  max-width:720px; margin:0 auto 14px;
  border:var(--bw) solid var(--rule); border-radius:12px;
  padding:14px 18px; font-weight:800; font-size:14px;
  color:var(--accent);
}
.copyright{ font-size:12px; opacity:.5; }
.footer-links{ margin-bottom:14px; font-size:14px; }
.footer-links a{ margin:0 10px; font-weight:700; }
.footer-links a:hover{ color:var(--accent); }

/* 悬浮透明音乐碟 */
.music-disc{
  position:fixed; right:22px; bottom:24px; z-index:999;
  width:82px; height:82px; cursor:pointer;
  background:transparent;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:4px;
}
.disc{
  width:100%; height:100%; border-radius:50%;
  background:repeating-radial-gradient(circle at center, #111 0 2px, #2f2f2f 2px 5px);
  border:2px solid rgba(0,0,0,.6);
  opacity:.68;
  animation:spin 6s linear infinite;
  box-shadow:0 3px 10px rgba(0,0,0,.28);
  position:relative;
}
.disc::after{
  content:""; position:absolute; top:50%; left:50%;
  width:30px; height:30px; transform:translate(-50%,-50%);
  border-radius:50%; background:var(--accent);
  border:3px solid #fff; box-shadow:0 0 0 2px rgba(0,0,0,.2);
}
.disc::before{
  content:""; position:absolute; top:50%; left:50%;
  width:7px; height:7px; transform:translate(-50%,-50%);
  border-radius:50%; background:#fff; z-index:2;
}
.music-disc.paused .disc{ animation-play-state:paused; }
.music-hint{
  position:absolute; top:-2px; right:-2px;
  background:var(--ink); color:#fff; font-size:15px;
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--bg); box-shadow:0 0 0 1px var(--ink);
  animation:blink 1.6s ease-in-out infinite;
}
.music-info{
  font-size:11px; font-weight:800; background:#fff;
  border:2px solid var(--ink); border-radius:20px;
  padding:2px 10px; white-space:nowrap;
  box-shadow:2px 2px 0 var(--ink);
  max-width:140px; overflow:hidden; text-overflow:ellipsis;
  margin-top:2px;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes blink{ 0%,100%{ opacity:.85; } 50%{ opacity:.35; } }
@keyframes popIn{ 0%{ opacity:0; transform:scale(.6); } 100%{ opacity:1; transform:scale(1); } }

/* 商品卡片 */
.product-card{
  background:var(--bg); border:var(--bw) solid var(--rule); border-radius:16px;
  padding:26px 22px; position:relative; text-align:left;
  box-shadow:6px 6px 0 var(--rule);
  transition:transform .3s var(--spring), box-shadow .3s ease;
  display:flex; flex-direction:column; gap:12px;
}
.product-card:hover{ transform:translateY(-6px); box-shadow:9px 9px 0 var(--rule); }
.product-tag{
  position:absolute; top:-14px; left:16px;
  background:var(--accent); color:#fff; font-size:11px; font-weight:800;
  padding:3px 10px; border:2px solid var(--ink); border-radius:20px;
  box-shadow:2px 2px 0 var(--ink);
}
.product-card h3{ font-size:20px; font-weight:900; }
.product-desc{ font-size:14px; opacity:.72; min-height:42px; }
.product-price{ font-size:28px; font-weight:900; color:var(--accent); }
.product-price small{ font-size:14px; color:var(--ink); font-weight:700; }
.product-stock{ font-size:12px; opacity:.55; }
.product-warn{
  background:#fff; border:2px solid var(--accent); color:var(--accent);
  font-weight:800; font-size:13px; padding:8px 12px; border-radius:8px;
}
.btn-buy{ width:100%; padding:13px; background:var(--ink); color:#fff; box-shadow:0 4px 0 rgba(0,0,0,.35); border:var(--bw) solid var(--ink); }
.btn-buy:hover{ background:var(--ink); color:#fff; }
.btn-buy:disabled{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:0 4px 0 rgba(0,0,0,.35); }

/* 购买弹窗 */
.modal-mask{
  position:fixed; inset:0; background:rgba(0,0,0,.42);
  display:none; align-items:center; justify-content:center; z-index:1000; padding:20px;
}
.modal-mask.show{ display:flex; }
.modal{
  background:var(--bg); border:var(--bw) solid var(--rule); border-radius:16px;
  box-shadow:8px 8px 0 var(--rule);
  width:min(420px,100%); padding:28px 24px; text-align:left;
  animation:popIn .35s var(--spring) both;
}
.modal h3{ font-size:20px; font-weight:900; margin-bottom:6px; }
.modal .price{ font-size:24px; font-weight:900; color:var(--accent); margin-bottom:12px; }
.modal .note{ font-size:12px; opacity:.6; margin-bottom:14px; }
.modal .form-row{ margin-bottom:14px; }
.modal .form-row label{ font-size:13px; font-weight:700; display:block; margin-bottom:6px; }
.modal .form-row input, .modal .form-row textarea, .modal .form-row select{
  width:100%; padding:10px 12px;
  border:2px solid var(--ink); border-radius:8px;
  font-size:14px; outline:none; background:#fff; color:#000;
  font-family:inherit;
}
.modal .form-row input:focus{ box-shadow:2px 2px 0 var(--ink); }
.modal-row{ display:flex; gap:12px; }
.modal-row .btn{ flex:1; }
.code-box{
  display:none; margin-top:14px; border:2px dashed var(--ink); border-radius:10px;
  padding:16px; text-align:center;
  animation:popIn .4s var(--spring) both;
}
.code-box .lbl{ font-size:12px; opacity:.6; margin-bottom:8px; }
.code-box .val{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:17px; font-weight:800; letter-spacing:.06em; word-break:break-all;
  margin-bottom:10px;
}
.code-box .copy-btn{
  font-size:12px; padding:6px 14px; cursor:pointer;
  border:2px solid var(--ink); background:#fff; border-radius:6px;
  font-weight:700;
}

/* 响应式 */
@media (max-width:680px){
  .topbar{ padding:12px 16px; }
  .nav-btn{ padding:7px 12px; font-size:12px; }
  .logo{ font-size:17px; }
  .logo-mark{ width:32px; height:32px; font-size:16px; }
  .music-disc{ width:60px; height:60px; right:14px; bottom:14px; }
  .music-info{ display:none; }
}
