/* ==========================================================================
   家常菜谱 · fan.dabaodan.org
   移动端优先 + 桌面端自适应（断点 860px）
   设计令牌取自设计稿：主绿 #4a9d3f / 辅助绿 #67b85a / 浅绿底 #f0f7ee
   ========================================================================== */

:root {
  --green: #4a9d3f;
  --green-2: #67b85a;
  --green-dark: #2d5a27;
  --green-light: #f0f7ee;
  --green-border: #d4ecd0;
  --orange: #ff8f00;
  --red: #f44336;
  --text: #333333;
  --text-2: #666666;
  --text-3: #999999;
  --line: #eef0ee;
  --bg: #f6f8f5;
  --card: #ffffff;
  --r: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 10px 24px -20px rgba(0, 0, 0, .45);
  --grad: linear-gradient(135deg, #4a9d3f, #67b85a);
  --nav-h: 58px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input { font: inherit; }

ul, ol { list-style: none; }

[hidden] { display: none !important; }

.emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 14px; }

.muted { color: var(--text-3); font-size: 13px; }

/* ------------------------------------------------------------------ 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 12px rgba(45, 90, 39, .18);
}

.topbar-inner { height: 52px; display: flex; align-items: center; gap: 10px; }

.brand { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }

.topnav { display: none; }

/* ------------------------------------------------------------------ 区块头 */

.hero { background: var(--grad); color: #fff; padding: 16px 0 20px; }

.hero-title { font-size: 22px; font-weight: 800; letter-spacing: .3px; }

.hero-sub { font-size: 13px; opacity: .92; margin-top: 5px; }

.page-head { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--line); }

.page-head-row { display: flex; align-items: center; gap: 12px; }

.page-head-text { flex: 1; min-width: 0; }

/* 一键清空：次要位置用低饱和红色，避免误触后无法挽回 */
.clear-cart {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: #d4574a;
  border-color: #f0d3ce;
  background: #fff;
}

.clear-cart:active { background: #fdf3f1; }

.page-title { font-size: 19px; font-weight: 800; }

.page-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ---------------------------------------------------------------- 搜索框 */

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 5px 5px 14px;
  margin-top: 14px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35);
}

.search-icon { font-size: 14px; opacity: .55; }

.searchbar input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--text);
}

.search-btn {
  flex: 0 0 auto;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
}

.hot-links {
  margin-top: 10px;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  opacity: .95;
}

.hot-links a { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 10px; }

/* ------------------------------------------------------------------ 布局 */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 26px;
}

/* 关键：避免内部横向滚动条把整页撑宽（移动端横向溢出根源） */
.layout > * { min-width: 0; }

/* ------------------------------------------------------------------ 筛选 */

.filters {
  min-width: 0;
  background: var(--card);
  border-radius: var(--r);
  padding: 12px 12px 6px;
  box-shadow: var(--shadow);
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.filters-head .clear { color: var(--green); font-size: 13px; }

.filter-group { padding: 6px 0; }

.filter-label { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }

.chips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  font-size: 13px;
  white-space: nowrap;
  transition: .18s;
}

.chip.on { background: var(--green); color: #fff; border-color: var(--green); font-weight: 600; }

.chip-lg {
  padding: 9px 18px;
  font-size: 14px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.chip-lg.on { background: #fff; color: var(--green); border-color: #fff; font-weight: 700; }

.chips-center { justify-content: center; flex-wrap: wrap; overflow: visible; }

/* ------------------------------------------------------------------ 结果区 */

.results { min-width: 0; }

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.results-head strong { color: var(--green); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ------------------------------------------------------------------ 卡片 */

.card {
  --img-h: 104px;
  position: relative;
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}

.card:active { transform: scale(.98); }

.card-main { display: block; }

.card-img {
  height: var(--img-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.card-body { padding: 10px 11px 12px; }

.card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  overflow: hidden;
}

/* 单独不拆行：装不下时整块换行，避免文字被挤成竖排 */
.card-meta > span { white-space: nowrap; }

.card-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }

.mini-tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--green-light); color: var(--green-dark); }

.plus {
  position: absolute;
  top: calc(var(--img-h) - 36px);
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(74, 157, 63, .45);
  z-index: 2;
  transition: background .18s;
}

.plus.on { background: #b9c4b7; }

/* ------------------------------------------------------------------ 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: .18s;
}

.btn:active { transform: scale(.97); }

.btn.primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px -10px rgba(74, 157, 63, .9); }

.btn.ghost { background: #fff; color: var(--green-dark); border: 1px solid var(--green-border); }

.btn.icon-only { width: 44px; padding: 0; font-size: 18px; }

.btn.grow { flex: 1; }

.btn[disabled] { opacity: .6; }

/* -------------------------------------------------------------- 操作栏 */

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px -16px rgba(0, 0, 0, .5);
}

.more-wrap { display: flex; justify-content: center; padding: 18px 0 4px; }

/* ------------------------------------------------------------------ 详情 */

.detail { padding-bottom: 96px; }

.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--text-2); padding: 12px 0; }

.detail-hero {
  height: 186px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 82px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.detail-grid { display: grid; gap: 14px; margin-top: 14px; }

.detail-left, .detail-right { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }

.detail-name { font-size: 22px; font-weight: 800; line-height: 1.3; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--text-2); margin-top: 8px; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.detail-tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--green-light); color: var(--green-dark); }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 18px 0 10px;
}

.section-title:first-child { margin-top: 0; }

.section-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--green); }

.ing-group { margin-bottom: 12px; }

.ing-label { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }

.ing-list li { position: relative; padding-left: 14px; font-size: 14.5px; color: #555; line-height: 1.95; }

.ing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-border);
}

.step-item { display: flex; gap: 10px; margin-bottom: 12px; }

.step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text { font-size: 14.5px; color: #555; line-height: 1.75; }

.tips-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff8e1; color: #8d6e00; font-size: 14px; line-height: 1.8; }

.related { margin-top: 22px; }

/* ------------------------------------------------------------------ 搭配 */

.match-main, .cart-main, .shop-main { padding-top: 14px; padding-bottom: 96px; }

.summary {
  display: flex;
  padding: 14px 6px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-align: center;
}

/* 等分自适应：2 人不出冷菜时摘要只有 3 格，也不会留空列 */
.summary-item { flex: 1 1 0; min-width: 0; }

.summary-item .num { font-size: 21px; font-weight: 800; color: var(--green); }

.summary-item .label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.match-category { margin-top: 16px; }

.match-cat-title { font-size: 15.5px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }

.match-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.match-item-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

.match-item-img {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.match-item-info { min-width: 0; }

.match-item-name { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.match-item-tags { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

.btn-swap { flex: 0 0 auto; font-size: 12.5px; color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 5px 12px; }

/* ------------------------------------------------------------------ 清单 */

.cart-list { display: grid; gap: 10px; }

.cart-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

.cart-item-img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name { font-size: 15.5px; font-weight: 600; }

.cart-item-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.remove-btn { flex: 0 0 auto; padding: 6px 4px; font-size: 20px; line-height: 1; color: #c9cfc8; }

.cart-total { flex: 1; min-width: 0; }

.cart-total .num { font-size: 20px; font-weight: 800; color: var(--green); }

.cart-total .label { font-size: 14px; color: var(--text-2); }

.cart-total-sub { font-size: 12px; color: var(--text-3); }

/* -------------------------------------------------------- 购买清单 */

.tabs {
  display: flex;
  margin-bottom: 12px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab { flex: 1; padding: 12px 6px; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent; }

.tab.on { color: var(--green); border-bottom-color: var(--green); font-weight: 700; }

.tab em { font-style: normal; font-size: 11.5px; color: var(--text-3); margin-left: 3px; }

.tab-panel { display: none; gap: 8px; }

.tab-panel.on { display: grid; }

.shop-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }

.checkbox {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #cfd6ce;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox.on { background: var(--green); border-color: var(--green); }

.shop-item-info { flex: 1; min-width: 0; }

.shop-item-name { font-size: 15px; font-weight: 600; }

.shop-item-from { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.shop-item-amount { flex: 0 0 auto; font-size: 14.5px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* 购买清单 · 🍳 做法 面板 */
.tab-panel.cook-panel.on { display: block; }

.cook-card { margin-bottom: 12px; padding: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

.cook-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.cook-emoji { font-size: 20px; }

.cook-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; color: var(--text-1, #222); }

.cook-meta { flex: 0 0 auto; font-size: 12px; color: var(--text-3); }

.cook-note { margin-top: 4px; text-align: center; font-size: 12px; color: var(--text-3); }

.back-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  font-size: 16px;
}

/* ------------------------------------------------------------------ 我的 */

.mine-hero { background: var(--grad); color: #fff; padding: 26px 0 22px; text-align: center; }

.avatar {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.mine-name { font-size: 18px; font-weight: 700; }

.mine-sub { font-size: 12.5px; opacity: .9; margin-top: 4px; }

.mine-main { padding-top: 14px; padding-bottom: 24px; }

.mine-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-align: center; }

.mine-stat .num { font-size: 20px; font-weight: 800; color: var(--green); }

.mine-stat .label { font-size: 12px; color: var(--text-3); }

.mine-list { margin-top: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }

.mine-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 14px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; }

.mine-item:last-child { border-bottom: 0; }

.mine-item .ico { font-size: 18px; }

.mine-item .arrow { margin-left: auto; color: #ccc; }

.about-card { margin-top: 12px; padding: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); font-size: 13.5px; color: var(--text-2); line-height: 1.85; }

.about-title { font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }

/* ------------------------------------------------------------------ 空态 */

.empty { grid-column: 1 / -1; padding: 44px 20px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-align: center; color: var(--text-3); }

.empty-ico { font-size: 42px; margin-bottom: 10px; }

.empty p { font-size: 14px; line-height: 1.8; }

.empty .btn { margin-top: 14px; }

.empty.small { padding: 22px; font-size: 13px; }

.error-main { padding: 36px 14px; }

.error-code { font-size: 38px; font-weight: 800; color: var(--green); margin: 4px 0; }

.error-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* ------------------------------------------------------------ 底部导航 */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-3);
  position: relative;
}

.nav-item .ico { font-size: 18px; }

.nav-item.on { color: var(--green); font-weight: 600; }

.badge {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav .badge { position: absolute; top: 5px; right: calc(50% - 22px); }

/* ------------------------------------------------------------ 页脚/提示 */

.site-footer { padding: 20px 0 18px; text-align: center; font-size: 12.5px; color: var(--text-3); }

.site-footer p { margin: 3px 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 26px);
  z-index: 200;
  max-width: 80vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: .25s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   桌面端 / 平板（≥860px）
   ========================================================================== */

@media (min-width: 860px) {
  :root { --nav-h: 0px; }

  body { padding-bottom: 0; }

  .bottom-nav { display: none; }

  .topbar-inner { height: 60px; }

  .brand { font-size: 19px; }

  .topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

  .topnav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: rgba(255, 255, 255, .88);
    transition: .18s;
  }

  .topnav-item:hover, .topnav-item.on { background: rgba(255, 255, 255, .2); color: #fff; }

  .hero { padding: 28px 0 32px; }

  .hero-title { font-size: 30px; }

  .hero-sub { font-size: 14.5px; }

  .searchbar { max-width: 540px; }

  .layout { grid-template-columns: 236px minmax(0, 1fr); gap: 22px; padding-top: 22px; padding-bottom: 40px; }

  .filters { position: sticky; top: 78px; align-self: start; padding: 14px 14px 8px; }

  .chips { flex-wrap: wrap; overflow: visible; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }

  .card { --img-h: 120px; }

  .card-img { font-size: 50px; }

  .card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .45); }

  .plus:hover { background: var(--green-dark); }

  .actionbar {
    position: static;
    max-width: 660px;
    margin: 20px auto 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .detail { padding-bottom: 30px; }

  .detail-hero { height: 250px; font-size: 108px; }

  .detail-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }

  .detail-left { position: sticky; top: 84px; padding: 18px; }

  .detail-name { font-size: 26px; }

  .detail-right { padding: 18px; }

  .match-main, .cart-main, .shop-main { padding-top: 22px; padding-bottom: 30px; }

  .match-main > .summary { max-width: 660px; margin: 0 auto; }

  .match-category { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .match-cat-title { grid-column: 1 / -1; }

  .match-item { margin-bottom: 0; }

  .cart-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tab-panel.on { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .toast { bottom: 34px; }

  .mine-stats, .mine-list, .about-card { max-width: 660px; margin-left: auto; margin-right: auto; }

  .mine-stats { margin-top: 0; }
}

@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
}
