font-family: Arial, sans-serif !important;
}

input, button, select, textarea {
  font-family: Arial, sans-serif !important;
}


/* Base General Styles */
:root {
  --brand: #9b87f5;
  --bg: #ffffff;
  --border: #eee7ff;
  --dark: #2f2a44;
  --light: #7a7394;
  --card-bg: #ffffff;
}

/* 顶部工具栏：和 outfit.html 一样 */
.toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0 12px;
  padding:0 16px;      /* 给一点左右空隙，和 outfit 视觉类似 */
}

/* 搜索框：同时支持 outfit 的 #q 和 index 的 #search */
#q,
#search{
  flex:1;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}

/* + 按钮 和 搜索按钮：统一成和 outfit 一样的 btn */
.btn{
  appearance:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  padding:8px 12px;
  font-weight:700;
  cursor:pointer;
}


body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: Arial, sans-serif !important;
}


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

/* ===== 底部导航：铺满整一栏，4 等分 ===== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100vw;            /* 覆盖整一行 */
  height: 60px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  background: #ffffff;
  border-top: 1px solid var(--border);

  display: grid;           /* 用 grid 让 4 个按钮平均分 */
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif !important;
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  font-weight: 400;
}

.bottom-nav a.active {
  font-weight: 700;        /* 当前页面加粗 */
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  display: block;
}

.card .ph img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ============================
   Outfit Page Card Layout
   ============================ */

#recGrid, #followGrid {
  padding: 12px;
}

.card .meta {
  padding: 10px;
}

.meta .title {
  font-weight: 700;
  font-size: 15px;
}

.meta .sub {
  color: var(--light);
  font-size: 12px;
}

/* ===== Outfit 页面：feed 卡片图片大小控制 ===== */
#recGrid .card .ph,
#followGrid .card .ph {
  width: 100%;
  max-height: 260px;          /* 图片区域最大高度，觉得还是大可以再改小一点 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图片保持比例，不被裁切，但不会无限变高 */
#recGrid .card .ph img,
#followGrid .card .ph img {
  width: 100%;
  height: auto;
  max-height: 260px;          /* 跟上面保持一致 */
  object-fit: contain;        /* 显示整张图 */
}

/* ============================
   POST PAGE FULL STYLE
   ============================ */

.post-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* --- 图片区域 --- */
.post-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.post-hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;    /* 图片完整显示 */
  background: #f5f5f5;
  border-radius: 12px;
}

/* 左右切图按钮 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
.nav-btn.left  { left: 6px; }
.nav-btn.right { right: 6px; }

/* 页码 */
.pager {
  position: absolute;
  bottom: 6px;
  right: 10px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}

/* --- 作者区域 --- */
.author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #555;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
}

.author-loc {
  font-size: 12px;
  color: #888;
}

/* 关注按钮 */
.follow-btn {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
}

/* --- 标题正文 --- */
.post-title {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.post-desc {
  font-size: 15px;
  color: #444;
  margin-bottom: 10px;
}

/* 标签 */
.tags .tag {
  display: inline-block;
  padding: 4px 8px;
  background: #f1edff;
  color: #7c6cf0;
  border-radius: 6px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

/* 数据统计 */
.stats {
  margin: 10px 0;
  font-size: 14px;
  color: #666;
}

/* 点赞/收藏/分享按钮 */
.actions {
  display: flex;
  justify-content: space-around;
  margin: 18px 0;
}

.btn-act {
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
}

/* 评论框 */
.cmt-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 40px;
}

/* Post 详情整体容器 */
.post-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 16px 14px 80px;
}

/* 给内容加一个白色卡片感（外层可以不改 HTML） */
.post-container > * {
  box-sizing: border-box;
}

/* 如果你愿意，可以在 hero + 作者 + 文本外围再包一层 div.post-card
   然后启用下面这个样式： */
/*
.post-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  padding: 12px 12px 20px;
}
*/

/* 图片区域 */
.post-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f5f5;
}

/* 大图：保持比例，不裁切，适配手机宽度 */
.post-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;      /* 保证整张图看得见 */
}

/* 左右切图按钮更细一点 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.38);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

/* 页码气泡 */
.pager {
  position: absolute;
  bottom: 8px;
  right: 10px;
  padding: 3px 9px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
}

/* 作者行 */
.author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px 8px;
}

/* 首字母头像，和 myaccount 风格接近 */
.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #efe9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #7c6cf0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.author-loc {
  font-size: 12px;
  color: #999;
}

/* 关注按钮 */
.follow-btn {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* 已关注状态（JS 会加 .primary 类时的效果） */
.follow-btn.primary {
  background: var(--brand);
  color: #fff;
}

.post-title {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 4px;
  color: #222;
}

.post-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 标签区域 */
.tags .tag {
  display: inline-block;
  padding: 3px 8px;
  background: #f2ecff;
  color: #7c6cf0;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.stats {
  margin: 10px 0 4px;
  font-size: 13px;
  color: #777;
}

/* 操作按钮行 */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 14px;
}

.btn-act {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
}

/* 点赞/收藏高亮状态（JS 里会加 .primary） */
.btn-act.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.cmt-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 40px;
  outline: none;
}

.cmt-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(124,108,240,0.2);
}

/* ============================
   🚀 POST 详情页最终样式
   ============================ */

/* 整体容器 */
.post-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 16px 90px;
}

/* 图片区域 */
.post-hero {
  width: 100%;
  height: 420px;                /* ⭐ 控制图片区域高度，防止太高 */
  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.post-hero-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;          /* ⭐ 关键：完整显示，不裁切 */
}

/* 左右切图按钮 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn.left { left: 8px; }
.nav-btn.right{ right: 8px; }

/* 页码显示 */
.pager {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* 作者区域 */
.author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eae2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #6d5bf5;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
}

.author-loc {
  font-size: 13px;
  color: #777;
}

/* 关注按钮 */
.follow-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #7c6cf0;
  color: #7c6cf0;
  background: white;
  font-size: 14px;
  font-weight: 600;
}

.follow-btn.primary {
  background: #7c6cf0;
  color: white;
}

/* 标题 */
.post-title {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 4px;
}

/* 文本 */
.post-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* 标签 */
.tags .tag {
  display: inline-block;
  padding: 4px 8px;
  background: #f0eaff;
  color: #7c6cf0;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

/* 点赞统计 */
.stats {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* 操作按钮 */
.actions {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
}

.btn-act {
  width: 32%;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid #e5ddff;
  background: #fff;
  font-size: 14px;
}

.btn-act.primary {
  background: #7c6cf0;
  color: #fff;
  border-color: #7c6cf0;
}

/* 评论输入框 */
.cmt-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
}
t-family: Arial, sans-serif !important;
}

/* 底部 tab 栏（post.html 用的那套） */
.tabbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
}

.tab{
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: Arial, sans-serif !important;
  font-size: 14px;
  color: #666;
  height: 60px;
  line-height: 60px;
  font-weight: 600;
}

.tab.active{
  color: #000000;
  font-weight: 800;
}


body { background: #ffffff !important; }

.topbar {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Woman / Man 各占一半 */
.gender-switch {
  display: flex;
  width: 100%;
  gap: 10px;
}

/* 未点击按钮（normal） */
.gender-btn {
    background: #ffffff;          /* 白色背景 */
    border: none;                 /* 无边框 */
    color: #000000;               /* 黑色字体 */
    font-weight: 400;             /* 普通字体 */
    padding: 10px 0;
    width: 100%;
    border-radius: 12px;
}

/* 点击后（active） */
.gender-btn.active {
    background: #ffffff !important;   /* 仍然白色 */
    color: #000000 !important;        /* 黑色字体 */
    font-weight: 700 !important;      /* 粗体 bold */
    border: 1px solid #e8e9eb !important; /* 灰色边框 */
}


/* “＋” 单独按钮 */
.add-btn {
    background: #ffffff;
    border: 1px solid var(--border);     /* ← 保持一致边框 */
    width: 36px;
    height: 36px;
    font-size: 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* 搜索栏内的性别下拉 */
.gender-dd {
  margin-right: 12px;
  position: relative;
}

.gender-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;                 /* ← 和 outfit 一致 */
    border: 1px solid var(--border);     /* ← outfit 边框 */
    background: #ffffff;
    font-size: 13px;
    color: #000;
    cursor: pointer;
}

.gender-arrow {
  font-size: 12px;
  color: #777;
}

/* 下拉菜单 */
.gender-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid #e8e9eb;
  border-radius: 10px;
  min-width: 90px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 4px 0;
  display: none;
  z-index: 20;
}

.gender-menu.open {
  display: block;
}

.gender-menu div {
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.gender-menu div:hover {
  background: #f5f5f5;
}

/* 顶部三件套：＋ / 搜索框 / 性别选择 */
.top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 4px;
}


.gender-arrow {
  font-size: 12px;
  color: #777;
}

/* 下拉菜单 */
.gender-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid #e8e9eb;
  border-radius: 10px;
  min-width: 90px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 4px 0;
  display: none;
  z-index: 20;
}

.gender-menu.open {
  display: block;
}

.gender-menu div {
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.gender-menu div:hover {
  background: #f5f5f5;
}

#outfit-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 12px;   /* 和 index.html 一样 */
}

.outfit-card {
    width: calc(50% - 8px);   /* 两列 + 中间缝隙固定 */
    margin-bottom: 16px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8e9eb;
}

.outfit-card img {
    width: 100%;
    height: auto !important; 
    object-fit: contain !important; 
    display: block;
}

.outfit-info {
    padding: 10px 12px;
    height: auto !important;
    min-height: 0 !important;
}


