
:root {
  --pine: #2D5F3F;
  --pine-light: #3A7A52;
  --pine-dark: #1E4029;
  --cream: #FAF7F2;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --white: #FFFFFF;
  --text-primary: #1A2E22;
  --text-secondary: #5A6B60;
  --text-tertiary: #8A958E;
  --border: #E8E2DA;
  --shadow: 0 2px 16px rgba(45,95,63,0.06);
  --shadow-md: 0 4px 24px rgba(45,95,63,0.08);
  --radius-md: 14px;
  --radius-lg: 20px;
}
a { color: inherit; text-decoration: none; }



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #E8E2DA;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 24px 0;
}

.phone-frame {
  width: 375px;
  height: 812px;
  background: var(--cream);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.08);
}

.phone-scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 83px; /* space for fixed tab bar */
}

/* ========== Status Bar ========== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 8px;
  height: 44px;
  background: transparent;
  position: relative;
  z-index: 10;
}

.status-time {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons svg {
  display: block;
}

/* ========== Header / Profile ========== */
.header {
  background: linear-gradient(180deg, #D6E5DA 0%, #E8EFE9 40%, var(--cream) 100%);
  padding: 16px 20px 24px;
  position: relative;
}

.notification-bell {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notification-bell svg {
  display: block;
}

.bell-badge {
  position: absolute;
  top: 2px;
  right: 0px;
  background: #E54D42;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #D6E5DA;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #B08D50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(196,162,101,0.3);
  border: 2.5px solid rgba(255,255,255,0.7);
}

.avatar span {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.profile-info {
  flex: 1;
  padding-right: 44px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--pine-dark);
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
}

.member-badge svg {
  display: block;
}

.profile-phone {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.edit-link {
  font-size: 12px;
  color: var(--pine-light);
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.edit-link svg {
  display: block;
}

/* ========== Asset Card ========== */
.asset-section {
  padding: 0 16px;
  margin-top: -4px;
}

.asset-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(232,226,218,0.6);
  position: relative;
  overflow: hidden;
}

.asset-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.asset-grid {
  display: flex;
  align-items: flex-start;
}

.asset-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.asset-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: var(--border);
}

.asset-icon {
  margin-bottom: 6px;
  color: var(--gold);
}

.asset-icon svg {
  display: block;
}

.asset-item.points .asset-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.asset-item:not(.points) .asset-value {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.asset-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.asset-arrow {
  display: flex;
  align-items: center;
  margin-top: 5px;
  color: var(--gold);
}

.asset-arrow svg {
  display: block;
}

.asset-hint {
  text-align: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #E8E2DA;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

.asset-hint svg {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 2px;
}

/* ========== Order Section ========== */
.order-section {
  padding: 24px 16px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.view-all {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.view-all svg {
  display: block;
}

.order-grid {
  display: flex;
  justify-content: space-around;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  box-shadow: var(--shadow);
}

.order-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.order-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EFF5F0 0%, #E4EDE6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  transition: all 0.2s ease;
}

.order-icon-wrap:hover {
  background: linear-gradient(135deg, #E4EDE6 0%, #D6E5DA 100%);
}

.order-item span {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* ========== Menu List ========== */
.menu-section {
  padding: 24px 16px 0;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-item:active {
  background: #FAFAF8;
}

.menu-item:not(:last-child) {
  border-bottom: 1px solid #F0EDE8;
}

.menu-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.menu-icon-wrap svg {
  display: block;
}

.menu-icon-wrap.green {
  background: linear-gradient(135deg, #EFF5F0, #E4EDE6);
  color: var(--pine);
}

.menu-icon-wrap.gold {
  background: linear-gradient(135deg, #F8F3EA, #F0E8DA);
  color: var(--gold);
}

.menu-icon-wrap.blue {
  background: linear-gradient(135deg, #EDF3F8, #E0EBF2);
  color: #4A7C94;
}

.menu-icon-wrap.purple {
  background: linear-gradient(135deg, #F2EFF8, #E6E0F2);
  color: #7A6B9A;
}

.menu-icon-wrap.orange {
  background: linear-gradient(135deg, #F8F1EA, #F0E4D8);
  color: #B08450;
}

.menu-icon-wrap.teal {
  background: linear-gradient(135deg, #EBF5F4, #DCF0ED);
  color: #3A8A7A;
}

.menu-icon-wrap.pine-light {
  background: linear-gradient(135deg, #EFF5F0, #E4EDE6);
  color: var(--pine-light);
}

.menu-content {
  flex: 1;
  min-width: 0;
}

.menu-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.menu-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.2px;
}

.menu-arrow {
  color: var(--text-tertiary);
  opacity: 0.5;
  flex-shrink: 0;
  margin-left: 8px;
}

.menu-arrow svg {
  display: block;
}

/* ========== Business Data Module ========== */
.business-section {
  padding: 24px 16px 20px;
}

.business-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.business-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 12px;
}

.business-card-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.business-card-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.business-grid-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.business-grid-item:active {
  background: #FAFAF8;
}

.business-grid-item:nth-child(odd) {
  border-right: 1px solid #F0EDE8;
}

.business-grid-item:nth-child(-n+2) {
  border-bottom: 1px solid #F0EDE8;
}

.business-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.business-icon-wrap svg {
  display: block;
}

.business-icon-wrap.gold {
  background: linear-gradient(135deg, #F8F3EA, #F0E8DA);
  color: var(--gold);
}

.business-icon-wrap.green {
  background: linear-gradient(135deg, #EFF5F0, #E4EDE6);
  color: var(--pine);
}

.business-icon-wrap.blue {
  background: linear-gradient(135deg, #EDF3F8, #E0EBF2);
  color: #4A7C94;
}

.business-icon-wrap.teal {
  background: linear-gradient(135deg, #EBF5F4, #DCF0ED);
  color: #3A8A7A;
}

.business-item-content {
  flex: 1;
  min-width: 0;
}

.business-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.business-item-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.2px;
}

.business-item-arrow {
  color: var(--text-tertiary);
  opacity: 0.5;
  flex-shrink: 0;
  margin-left: 6px;
}

.business-item-arrow svg {
  display: block;
}

/* ========== Bottom Tab Bar ========== */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 83px;
  background: var(--white);
  border-top: 1px solid #F0EDE8;
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 28px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.tab-item svg {
  display: block;
}

.tab-item span {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.2px;
}

.tab-item.active svg {
  color: var(--pine);
}

.tab-item.active span {
  color: var(--pine);
  font-weight: 500;
}

/* v7 tab 链接化补丁 */
.tab-bar a,.bottom-tab-bar a{text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}


body { padding: 0; background: #E8E4DF; align-items: stretch; }
.phone-frame {
  width: min(480px, 100%);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}
.status-bar { display: none; }
.order-icon-wrap { position: relative; }
.order-badge {
  position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #E54D42; color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.menu-item, .order-item, .asset-item, .business-grid-item { text-decoration: none; color: inherit; }
.tab-item { color: var(--text-tertiary); }
.tab-item.active { color: var(--pine); }
