/* ===== 基础 ===== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #111;
  background: #fff;
  letter-spacing: 0.08em;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ===== 顶部黑色导航 ===== */
.header {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 10px 8px 10px 14px;
  position: relative;
}
.header .group {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  letter-spacing: 0.02em;
}
.menu-btn { margin-right: 14px; }
.logo { flex: 1; }
.logo .name { font-size: 22px; font-weight: 900; letter-spacing: 0.1em; }
.logo .tagline { font-size: 8px; line-height: 1.4; margin-top: 2px; }
.header-nav { display: flex; gap: 8px; margin-top: 14px; }
.header-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  min-width: 44px;
  white-space: nowrap;
}
.header-nav svg { margin-bottom: 4px; }

/* ===== 搜索框 ===== */
.search {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  margin: 10px 8px 0;
  padding: 0 12px;
  height: 40px;
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  background: transparent;
}

/* ===== 主体 ===== */
main { padding: 0 22px 40px; }
.page-en { font-size: 14px; font-weight: 900; letter-spacing: 0.25em; margin: 36px 0 8px; }
.page-title { font-size: 26px; font-weight: 900; letter-spacing: 0.2em; margin: 0 0 40px; }
.user-name { font-size: 18px; font-weight: 900; letter-spacing: 0.4em; margin: 0 0 24px; }
.section-title { font-size: 22px; font-weight: 900; letter-spacing: 0.15em; margin: 48px 0 24px; }

/* 左图标 + 右文字 的卡片 */
.card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.card-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: #f2f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 9px;
  font-weight: 700;
}
.card-body h3 { font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.card-body p { font-size: 11px; line-height: 1.9; margin: 0; }
.note { color: #e8341c; font-weight: 700; }
.inline-link {
  display: block;
  text-align: center;
  color: #3b82c4;
  text-decoration: underline;
  font-size: 12px;
  margin: -8px 0 24px;
}

/* 带箭头的列表行 */
.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
}

/* 登出按钮 */
.logout {
  display: block;
  border: 1px solid #222;
  text-align: center;
  padding: 18px 0;
  font-weight: 900;
  letter-spacing: 0.3em;
  margin: 48px 0 32px;
}
.withdraw {
  display: block;
  text-align: center;
  color: #3b82c4;
  text-decoration: underline;
  font-size: 13px;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 12px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.8);
}

/* ===== 底部 ===== */
.footer-social {
  background: #f2f2f4;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 24px 0 22px;
}
.footer-social p { font-size: 14px; font-weight: 500; margin: 0 0 16px; }
.circles { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; }
.circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pill {
  display: inline-block;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 12px 40px;
  font-size: 12px;
}
.footer {
  background: #000;
  color: #fff;
  padding: 36px 22px 30px;
}
.footer .brand {
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0 12px;
  font-size: 11px;
  line-height: 1.6;
}
.footer-links a { display: block; margin-bottom: 16px; }
.copyright { text-align: center; font-size: 10px; letter-spacing: 0.15em; margin-top: 40px; }

/* ===== 订单页 ===== */
.back { display: inline-block; font-size: 13px; color: #3b82c4; margin-top: 20px; }
.order { margin-bottom: 56px; }
.order-name { font-size: 16px; font-weight: 900; letter-spacing: 0.4em; color: #111; margin: 0 0 24px; }
.order-code { font-size: 14px; font-weight: 900; letter-spacing: 0em; color: #888; margin: 0 0 8px; }

/* 通用表格 */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 8px;
}
.tbl th, .tbl td {
  border: 1px solid #ddd;
  padding: 8px 6px;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.tbl th { background: #f7f7f7; }
.tbl.info th { width: 40%; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl.items { table-layout: fixed; }
.tbl.items th { white-space: nowrap; }
.tbl.items th:nth-child(2) { width: 16%; }
.tbl.items th:nth-child(3) { width: 24%; }
.tbl.items td:first-child { line-height: 1.7; }
.code { display: block; font-size: 9px; color: #555; margin-top: 2px; }

/* 进度条 */
.progress {
  border: 1px solid #ddd;
  padding: 8px 10px 10px;
  margin-bottom: 8px;
}
.progress-top { display: flex; align-items: center; gap: 12px; font-size: 9px; }
.progress-top b { font-size: 14px; }
.bar { height: 8px; background: #e5e5e5; margin-top: 6px; }
.bar span { display: block; height: 100%; background: #000; }

/* ===== 商品详情页 ===== */
.item-link { color: #3b82c4; text-decoration: underline; }
.detail { font-size: 13px; line-height: 1.9; }
.detail-title { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 24px 0 8px; }
.detail-price { font-size: 20px; font-weight: 700; margin: 0 0 32px; }
.detail-price small { font-size: 11px; font-weight: 400; color: #666; }
.detail-h { font-size: 16px; font-weight: 900; padding-bottom: 14px; border-bottom: 2px solid #e5e5e5; margin: 40px 0 18px; }
.detail ul { list-style: none; padding: 0; margin: 0; }
.detail ul li::before { content: "・"; }
.red { color: #e8341c; }
.detail .sub { font-weight: 900; margin: 0 0 16px; }
.detail img { display: block; width: 100%; max-width: 360px; margin: 0 auto 24px; }
.detail .spec b { display: block; }
.dotted { border: none; border-top: 1px dotted #bbb; margin: 40px 0 28px; }
.crumbs { background: #f2f2f4; padding: 12px 14px; margin-top: 32px; font-size: 12px; color: #888; line-height: 2; }

/* 页码 */
.pager { margin: 24px 0 40px; }

/* 上面一行：左右两端对齐 */
.pager-info {
  display: flex;
  justify-content: space-around;
  align-items: baseline;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.pager-info b { font-size: 22px; }

/* 下面一行：数字横排居中 */
.pager-nums {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pager-nums a,
.pager-nums span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;      /* 数字上下居中 */
  justify-content: center;  /* 数字左右居中 */
  font-size: 15px;
  font-weight: 700;
}
.pager-nums .current {
  background: #000;   /* 当前页黑底 */
  color: #fff;        /* 白字 */
}
