:root {
  --screenH: 100vh;
  --screenH: 100svh;

  --screenW: 100vw;
  --screenW: 100svw;

  --safeTop: env(safe-area-inset-top, 0px);
  --safeBottom: env(safe-area-inset-bottom, 0px);

  --topbarH: calc(var(--safeTop) + (var(--screenH) * 0.12));

  --contentH: calc(var(--screenH) - var(--topbarH));
}



/*======================================
   background
======================================*/



body {
  margin: 0;
  position: relative;
  min-height: var(--screenH);
  background: #000;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/febrero4/imagine/background.png") center/cover no-repeat;
  opacity: 0.80;
  z-index: 0;
  pointer-events: none;
}

main, header, footer, #sidebar, .topbar {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.gap {
  height: 40px;        /* ← 间隔高度，你自己调 */
  background: transparent;
  pointer-events: none; /* ← 不可触碰 */
  display: block;      /* ← 参与布局 */
  width: 100%;         /* ← 跟随父宽 */
}

/* =======================================
   topbar
=======================================*/
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: var(--topbar-height);

  background: transparent;
  padding: calc(env(safe-area-inset-top) + 12px) 12px 20px;

  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 80;
  border-radius: 0 0 14px 14px;
}

.menu-btn {
  font-size: 34px;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
}

.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 3;
  font-weight: 1500;
  margin: 0;
}

/* =======================================
   sidebar (TRANSFORM + OPACITY 版本)
=======================================*/
#sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;

  transform: translateX(-100%);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;

  width: (var(--screenW)*0.80);
  max-width: var(--screenW);
  height: var(--contentH);

  background: #fff;
  padding: 20px 0;

  border-radius: 0 14px 14px 0;
  box-shadow: 4px 0 14px rgba(0,0,0,0.28);

  z-index: 90;
}

#sidebar.active {
  transform: translateX(0);
  opacity: 1;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.menu-item {
  display: block;
  padding: 16px 20px;
  color: #222;
  font-weight: 1200;
  font-size: 16px;
}

.menu-item.active {
  background: #222;
  color: #fff;
}

/*======================================
overlay
======================================= */
#overlay {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0,0,0,.45);
  display: none;

  z-index: 60;
}

#overlay.active {
  display: block;
}

/* =======================================
   CONTENT
=======================================*/
.content {
  padding: calc(var(--topbar-height) + 30px) 16px 160px;
}

.home-block,
.single-block {
  background: rgba(255,255,255,0.86);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  padding: 18px;
  margin-bottom: 22px;
}

.block-title,
.single-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.item-name {
  flex: 1;
  text-align: left;
  font-weight: 650;
  white-space: nowrap;
}

.item-price {
  text-align: right;
  font-weight: 800;
  min-width: 84px;
  white-space: nowrap;
}

.content-subi {
  width: 95%;
  top:150px;
  margin: 0 auto 24px;
  padding: 18px;

  background: rgba(255,255,255,0.86);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);

  height: auto;
  display: block;
}

/* =======================================
   FOOTER（PC 显示）
=======================================*/
.footer {
  background: rgba(255,255,255,0.98);
  padding: 14px 0;
  font-size: 12px;
  text-align: center;
  line-height: 18px;

  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9;
  border-radius: 14px 14px 0 0;
}

.footer-row { margin: 3px 0; }


=========================================
   响应式布局
   ========================================= */

/* ---------- 📱 手机 (<600px) ---------- */
@media (max-width: 600px) {

  #sidebar {
    width: 210px;
    left: -210px;
  }

  .content {
    padding: calc(var(--topbar-height) + 20px) 14px 100px;
  }

  .menu-item {
    padding: 14px 16px;
    font-size: 14px;
  }

  .block-title,
  .single-title {
    font-size: 1.22rem;
  }

  .item { font-size: 14px; }
}
 .footer {display: none;}

/* ---------- 📱 平板 (600–1024px) ---------- */
@media (min-width: 600px) and (max-width: 1024px) {

  #sidebar { width: 240px; }

  .content {
    padding: calc(var(--topbar-height) + 20px) 22px 140px;
  }

  .block-title,
  .single-title {
    font-size: 1.3rem;
  }
}

/* ---------- 🖥️ PC (>1024px) ---------- */
@media (min-width: 1024px) {

  #sidebar { width: 260px; }

  body::before { opacity: 0.28; }

  .content {
    max-width: 1180px;
    margin: 0 auto;
    padding: calc(var(--topbar-height) + 30px) 30px 180px;
  }

  .home-block,
  .single-block {
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  }
}

/* ---------- 🖥️ 超大屏 (>1600px) ---------- */
@media (min-width: 1600px) {
  #sidebar { width: 300px; }
}