:root {
  --brand-red: #a31f1f;
  --accent-gold: #c8a24a;
  --line: rgba(176, 152, 122, 0.35);
  --page-bg-image: url("../../小图/微信图片_20260414214619_122_535.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #e8e2d5;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2f2520;
}

.page {
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(244, 239, 228, 0.84), rgba(244, 239, 228, 0.84)),
    var(--page-bg-image) center top / cover no-repeat;
  position: relative;
  overflow-x: hidden;
}

.topbar {
  height: calc(82px + env(safe-area-inset-top));
  padding: calc(env(safe-area-inset-top) + 4px) 14px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-btn {
  position: absolute;
  left: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(208, 202, 189, 0.65);
  color: #8f8880;
  font-size: 22px;
}

.brand-logo {
  width: 75px;
  height: auto;
  margin-top: -8px;
}

.topbar-spacer {
  display: none;
}

.content {
  padding: 8px 10px 96px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-wrap {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(206, 194, 173, 0.92);
  box-shadow: 0 2px 8px rgba(69, 44, 32, 0.15);
  overflow: hidden;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h1 {
  margin: 6px 0 0;
  font-size: 38px;
  line-height: 1;
  transform: scale(0.5);
  transform-origin: center;
  color: #3a2d26;
}

.quick-entry {
  margin: 6px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.entry-item {
  text-decoration: none;
  color: #7f2c22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.entry-item .icon {
  font-size: 42px;
  line-height: 1;
  color: #9f2d21;
}

.entry-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.entry-item strong {
  font-size: 38px;
  line-height: 1;
  transform: scale(0.5);
  transform-origin: center;
  white-space: nowrap;
}

.menu-card {
  background: rgba(244, 239, 228, 0.96);
  border: 2px solid rgba(154, 106, 93, 0.62);
  border-radius: 18px;
  margin: 8px 0 14px;
  overflow: hidden;
}

.menu-row {
  min-height: 66px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child {
  border-bottom: 0;
}

.left {
  color: #7f2c22;
  font-size: 16px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.row-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}

.arrow {
  color: #8e2d22;
  font-size: 32px;
  line-height: 1;
}

.bottom-tab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(375px, 100vw);
  height: calc(70px + env(safe-area-inset-bottom));
  background: #f1ebdf;
  border-top: 1px solid #ded5c3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 2px env(safe-area-inset-bottom);
}

.tab-item {
  text-decoration: none;
  color: #9fa3a9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
}

.tab-item .icon {
  font-size: 18px;
  line-height: 1;
}

.tab-item.active {
  color: var(--accent-gold);
  font-weight: 600;
}
