:root{
  --mc-yellow: #ffcc00;
  --mc-green:  #0b5d2a;
  --mc-dark:   #222;
  --mc-blue:   #0a58ca;
  --mc-gray-0: #fff;
  --mc-gray-1: #f6f6f6;
  --mc-gray-2: #e6e6e6;
  --mc-gray-3: #bfbfbf;
}

body{
  margin:0; padding:0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mc-dark);
  background: var(--mc-gray-1);
  line-height: 1.35;
}
a{ color: var(--mc-blue); text-decoration: none; }
a:hover{ text-decoration: underline; }

.mc-header{
  position: sticky; top:0; z-index:999;
  background: var(--mc-yellow);
  border-bottom: 1px solid var(--mc-gray-2);
}
.mc-header__inner{
  max-width: 1280px; margin:0 auto; padding: 10px 16px;
  display:flex; align-items:center; gap:16px;
}
.mc-brand{ font-weight:700; font-size: 18px; white-space: nowrap; }
.mc-search{ flex:1; display:flex; gap:8px; }
.mc-search input[type="search"]{
  flex:1; height:36px; border:1px solid var(--mc-gray-2);
  background:#fff; padding:0 10px; border-radius:2px; font-size:14px;
}
.mc-search button{
  height:36px; padding:0 12px; border:1px solid var(--mc-gray-2);
  background:#fff; cursor:pointer; border-radius:2px; font-size:14px;
}
.mc-quicklinks{ display:flex; gap:16px; font-size: 13px; }

.mc-shell{
  max-width:1280px; margin:0 auto; padding:0 16px;
  display:grid; grid-template-columns: 280px 1fr; gap:16px;
}
@media (max-width: 900px){
  .mc-shell{ grid-template-columns: 1fr; }
}

.mc-index{
  background:#fff; border:1px solid var(--mc-gray-2);
}
.mc-index__head{
  background: var(--mc-green); color:#fff; font-weight:700;
  padding:10px 12px; font-size:14px;
  display:flex; align-items:center; justify-content:space-between;
}
.mc-index__list{
  list-style:none; margin:0; padding:8px 0;
  max-height: calc(100vh - 190px); overflow:auto;
}
.mc-index__link{
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 12px; color:#000; font-size:14px;
  border-top:1px solid var(--mc-gray-1);
}
.mc-index__link:hover{ background: var(--mc-gray-1); text-decoration: none; }
.mc-index__count{ color: var(--mc-gray-3); font-size: 12px; }

.mc-breadcrumbs{ font-size: 12px; color: var(--mc-gray-3); margin: 12px 0 8px; }
.mc-section-title{
  background:#fff; border:1px solid var(--mc-gray-2);
  padding:12px; font-weight:700; font-size:16px;
}

.mc-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:8px 0; font-size: 13px; color:#000;
}
.mc-toolbar .group{ display:flex; align-items:center; gap:8px; }
.mc-select, .mc-input{
  height:32px; border:1px solid var(--mc-gray-2); background:#fff;
  border-radius:2px; padding:0 8px; font-size:13px;
}

/* View toggle buttons */
.view-toggle{
  display:flex; gap:8px;
}
.view-btn{
  background:#fff; border:1px solid var(--mc-gray-2);
  padding:4px 8px; font-size:13px; cursor:pointer;
}
.view-btn.active{ background: var(--mc-yellow); border-color:#d8b400; }

/* List View */
.mc-list{
  background:#fff; border:1px solid var(--mc-gray-2);
}
.mc-row{
  display:grid; grid-template-columns: 120px 1fr 160px; gap:12px;
  padding:10px 12px; border-top:1px solid var(--mc-gray-2);
}
.mc-row:first-child{ border-top:none; }
.mc-thumb{
  width:100%; height:90px; object-fit:cover;
  background: var(--mc-gray-1); border:1px solid var(--mc-gray-2);
}
.mc-title{ font-weight:700; font-size:14px; margin-bottom:4px; }
.mc-meta{ font-size:12px; color:#444; }
.mc-cta{ display:flex; gap:8px; justify-content:flex-end; }
.mc-btn{
  height:32px; padding:0 10px; border:1px solid var(--mc-gray-2);
  background:#fff; border-radius:2px; font-size:13px; cursor:pointer;
}
.mc-btn--primary{ background: var(--mc-yellow); border-color:#d8b400; }

/* Grid View */
.grid-view .mc-list{
  display:grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap:12px; border:none;
}
.grid-view .mc-row{
  grid-template-columns: 1fr; border:1px solid var(--mc-gray-2);
}
.grid-view .mc-cta{ justify-content:flex-start; }

/* Detail Page */
.detail-page{
  background:#fff; border:1px solid var(--mc-gray-2);
  padding:16px; display:grid; grid-template-columns: 1fr 1fr; gap:24px;
}
.detail-page img{ max-width:100%; height:auto; border:1px solid var(--mc-gray-2); }
.detail-info{ font-size:14px; }
.detail-title{ font-weight:700; font-size:18px; margin-bottom:8px; }
.detail-meta{ font-size:13px; color:#555; margin-bottom:12px; }
.detail-description{ font-size:14px; }
@media(max-width:800px){
  .detail-page{ grid-template-columns:1fr; }
}
.mc-footer{ margin:24px 0; font-size:12px; color: var(--mc-gray-3); text-align:center; }
