:root{
  --border:#f0b3b8;
  --accent:#e34b5f;
  --bg:#fff;
  --text:#222;
  --muted:#666;
  --radius:14px;
}

*{ box-sizing:border-box; }

/* body{
  margin:0;
  font-family: system-ui, -apple-system, "Noto Sans TC", Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background:#fafafa;
  display:flex;
  justify-content:center;
  padding:28px 14px;
} */

.sxcr-shell{
  width: min(1440px, 100%);
  margin: 28px auto;
  padding: 0 14px;
}
.sxcr-headline{
  font-size:28px;
  font-weight:800;
  letter-spacing:.06em;
  color:#d43b4f;
  text-align:center;
  margin-bottom:14px;
}

.sxcr-layout {
  display: block; /* 不再需要 grid 兩欄 */
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* slider */
.sxcr-slider{
  min-height: 480px;      /* 輪播區整體高度變高 */
  padding: 20px 48px 62px;/* 四周更寬敞（箭頭/圓點也會更舒服） */
  border-radius:12px;
  overflow:hidden;
  background:white;
  border:1px solid #eee;
  position:relative;
}

.sxcr-viewport{
  overflow:hidden;
  width:100%;
}

.sxcr-rail{
  display:flex;
  transition: transform 380ms ease;
  will-change: transform;
}

.sxcr-page{
  flex: 0 0 100%;
  padding:6px;
}

/* page grid */
.sxcr-grid{
  display:grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap:12px;
}

.sxcr-tile{
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.sxcr-tile__cap{
   height: 56px;
  padding:10px 10px 8px;
  font-size:15px;
  font-weight:700;
  color:#d43b4f;
  border-bottom:1px solid #f1f1f1;
  background:#fff;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:left;
  text-align:left;
}

.sxcr-tile__img{
  background:#f1f1f1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;

 /* height: clamp(560px, 60vh, 720px); */
}
.sxcr-tile__img img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
  border: 1px solid #000000;
}

/* arrows */
.sxcr-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid #eee;
  background:white;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  cursor:pointer;
  display:grid;
  place-items:center;
  user-select:none;
}
.sxcr-nav:disabled{
  opacity:.35;
  cursor:not-allowed;
  box-shadow:none;
}
.sxcr-nav--prev{ left:12px; }
.sxcr-nav--next{ right:12px; }

/* dots */
.sxcr-pips{
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
}
.sxcr-pip{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#ddd;
  border:0;
  cursor:pointer;
  padding:0;
}
.sxcr-pip[aria-current="true"]{
  background:var(--accent);
  transform: scale(1.12);
}

.sxcr-meter{
  position:absolute;
  left:14px;
  bottom:12px;
  font-size:12px;
  color:#777;
  background: rgba(255,255,255,.85);
  border:1px solid #eee;
  border-radius:999px;
  padding:6px 10px;
}

/* 上方分類列 */
.sxcr-side {
  border-left: none;
  border-bottom: 1px solid #eee;
  background: transparent;
  border-radius: 0;
  padding: 0 0 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: center; /* 整體置中 */
  gap: 10px;
}
.sxcr-side__title{
  margin:4px 0 6px;
  font-size:14px;
  color:#444;
  letter-spacing:.06em;
}
.sxcr-side__group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center; /* 按鈕群組置中 */
}
.sxcr-catBtn {
  width: auto;
  text-align: center;
  padding: 14px 36px;       /* 更大的內距 */
  border-radius: 12px;
  border: 1px solid #e7e7e7;
  background: white;
  cursor: pointer;
  font-size: 20px;           /* 字更大 */
}
.sxcr-catBtn[aria-current="true"] {
  border-color: rgba(227, 75, 95, .45);
  background: rgba(227, 75, 95, .08);
  color: #b3253a;
  font-weight: 700;
  font-size: 22px;           /* 選中狀態更大 */
}
.sxcr-side__hint{
  margin-top:auto;
  font-size:12px;
  color:#777;
  line-height:1.5;
}

@media (max-width: 860px) {
  .sxcr-layout {
    display: block;
  }
  .sxcr-side {
    border-bottom: 1px solid #eee;
    border-top: none;
  }
}