/* ========================================
   CHANEL STYLE - 极简奢华
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Chanel Colors */
  --black: #000000;
  --white: #FFFFFF;
  --cream: #FAF9F7;
  --cream-warm: #F5F5F3;
  --gold: #C5A572;
  --gold-light: #D4B896;
  --gray-dark: #1A1A1A;
  --gray: #333333;
  --gray-medium: #666666;
  --gray-light: #999999;
  --border: #E5E5E5;
  --border-light: #F0F0F0;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Radius - Chanel uses subtle rounding */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Shadows - very subtle */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);

  /* Safe areas */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Times New Roman', Georgia, 'Didot', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ========================================
   APP CONTAINER
   ======================================== */

#app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
}

/* ========================================
   HEADER - 极简黑
   ======================================== */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.menu-btn,
.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  border-radius: var(--radius);
  position: relative;
  transition: opacity 0.2s;
}

.menu-btn:active,
.icon-btn:active {
  opacity: 0.6;
}

.icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   SIDEBAR - 优雅黑
   ======================================== */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: var(--black);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  display: flex;
  flex-direction: column;
}

.app-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 40px 28px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.user-avatar {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-family: 'Times New Roman', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.user-avatar img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}

.user-name {
  display: block;
  color: var(--white);
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.user-role {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: all 0.2s;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.sidebar-item.active {
  color: var(--gold);
  background: rgba(197, 165, 114, 0.1);
}

.sidebar-item i {
  width: 20px;
  font-size: 15px;
  text-align: center;
}

.sidebar-footer {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.market-widget {
  display: none; /* 隐藏市场组件，保持简洁 */
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.app-main {
  padding: 20px;
  padding-bottom: calc(80px + var(--safe-bottom));
  min-height: calc(100vh - 56px);
}

.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 28px;
  color: var(--black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================================
   GREETING - 香奈儿风格
   ======================================== */

.greeting-section {
  margin-bottom: 28px;
  text-align: center;
  padding: var(--space-xl) 0;
}

.greeting-section h1 {
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.greeting-section p {
  font-size: 12px;
  color: var(--gray-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ========================================
   CHECK-IN BUTTON - 优雅简约
   ======================================== */

.checkin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.checkin-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.checkin-btn:hover::before {
  width: 60px;
}

.checkin-btn:active {
  background: var(--gray-dark);
}

.checkin-btn i {
  font-size: 14px;
}

/* ========================================
   STATS ROW - 简洁线条
   ======================================== */

.stats-row {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 10px;
  color: var(--gray-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 0 20px;
}

/* ========================================
   SECTION
   ======================================== */

.section {
  margin-bottom: 28px;
}

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

.section-title {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.08em;
}

.see-all {
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.see-all:hover {
  opacity: 0.7;
}

/* ========================================
   QUICK ACTIONS - 极简网格
   ======================================== */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.quick-item:active {
  transform: scale(0.96);
  border-color: var(--gold);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  background: var(--black);
  transition: background 0.25s;
}

.quick-item:active .quick-icon {
  background: var(--gold);
}

.quick-item span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-medium);
}

/* ========================================
   APPROVAL LIST - 优雅卡片
   ======================================== */

.approval-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: border-color 0.2s;
}

.approval-card:hover {
  border-color: var(--gold);
}

.approval-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.approval-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--black);
}

.approval-info {
  flex: 1;
  min-width: 0;
}

.approval-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.approval-meta {
  display: block;
  font-size: 12px;
  color: var(--gray-light);
}

.approval-actions {
  display: flex;
  gap: 10px;
  margin-left: 14px;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.action-btn:active {
  transform: scale(0.9);
}

.action-btn.approve {
  color: var(--black);
}

.action-btn.approve:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.action-btn.reject {
  color: var(--gray-light);
}

.action-btn.reject:hover {
  background: var(--gray-light);
  color: var(--white);
  border-color: var(--gray-light);
}

/* ========================================
   MEETING LIST
   ======================================== */

.meeting-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meeting-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: border-color 0.2s;
}

.meeting-card:hover {
  border-color: var(--gold);
}

.meeting-time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  min-width: 64px;
  border: 1px solid var(--border-light);
}

.meeting-time-box .time {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
}

.meeting-time-box .period {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--gray-light);
  text-transform: uppercase;
}

.meeting-info {
  flex: 1;
}

.meeting-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 5px;
}

.meeting-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-light);
}

.meeting-meta i {
  font-size: 11px;
  color: var(--gold);
}

/* ========================================
   WORKBENCH GRID
   ======================================== */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.app-card:active {
  transform: scale(0.96);
  border-color: var(--gold);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  background: var(--black);
  transition: background 0.25s;
}

.app-card:active .app-icon {
  background: var(--gold);
}

.app-card span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-medium);
}

/* ========================================
   DIRECTORY / CONTACTS
   ======================================== */

.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.search-bar i {
  color: var(--gray-light);
  font-size: 14px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--black);
}

.search-bar input::placeholder {
  color: var(--gray-light);
  letter-spacing: 0.05em;
}

.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 0;
  margin-bottom: 16px;
}

.alpha-index span {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray-medium);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.alpha-index span:active {
  background: var(--black);
  color: var(--white);
}

.contact-list {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.dept-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--cream);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}

.dept-header .count {
  background: var(--border);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:active {
  background: var(--cream);
}

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--black);
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 3px;
}

.contact-title {
  display: block;
  font-size: 12px;
  color: var(--gray-light);
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.contact-actions button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.contact-actions button:active {
  transform: scale(0.9);
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ========================================
   MAIL
   ======================================== */

.mail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.mail-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  cursor: pointer;
  transition: all 0.2s;
}

.mail-tab.active {
  color: var(--black);
  background: var(--cream);
}

.mail-list {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.mail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}

.mail-item:last-child {
  border-bottom: none;
}

.mail-item:active {
  background: var(--cream);
}

.mail-item.unread {
  background: rgba(197, 165, 114, 0.05);
}

.mail-star {
  color: var(--gold);
  font-size: 14px;
  margin-top: 2px;
}

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

.mail-sender {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 4px;
}

.mail-subject {
  display: block;
  font-size: 13px;
  color: var(--gray-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.mail-item.unread .mail-subject {
  color: var(--black);
  font-weight: 500;
}

.mail-time {
  display: block;
  font-size: 11px;
  color: var(--gray-light);
  letter-spacing: 0.05em;
}

.compose-fab {
  position: fixed;
  bottom: calc(90px + var(--safe-bottom));
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.compose-fab:active {
  transform: scale(0.9);
  background: var(--gold);
  color: var(--black);
}

/* ========================================
   PROFILE PAGE - 香奈儿风格核心
   ======================================== */

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--border-light);
}

.profile-header {
  background: var(--black);
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.company-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.company-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 18px;
}

.company-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.company-badge span {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-body {
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--white);
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0 auto 20px;
  position: relative;
  letter-spacing: 0.05em;
}

.avatar-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  display: none;
}

.avatar-initials {
  display: block;
}

.status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.profile-name {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.profile-title {
  font-size: 13px;
  color: var(--gray-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.profile-dept {
  font-size: 12px;
  color: var(--gray-light);
  letter-spacing: 0.08em;
}

.profile-info {
  padding: 0 24px 20px;
  background: var(--white);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 12px;
  color: var(--gray-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-value {
  font-size: 13px;
  color: var(--black);
  font-family: 'Times New Roman', Georgia, serif;
  letter-spacing: 0.03em;
}

.profile-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  background: var(--white);
}

.action-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--black);
  transition: all 0.25s ease;
}

.action-button:active {
  background: var(--black);
  color: var(--white);
}

.action-button i {
  font-size: 18px;
  color: var(--gold);
  transition: color 0.25s;
}

.action-button:active i {
  color: var(--gold);
}

.action-button span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ========================================
   SETTINGS LIST
   ======================================== */

.settings-list {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:active {
  background: var(--cream);
}

.settings-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--cream);
  color: var(--black);
}

.settings-label {
  flex: 1;
  font-size: 14px;
  color: var(--black);
  letter-spacing: 0.03em;
}

.settings-item.logout .settings-label {
  color: var(--gray-light);
}

.settings-item i.fa-chevron-right {
  color: var(--gray-light);
  font-size: 12px;
}

/* ========================================
   PLACEHOLDER
   ======================================== */

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.placeholder i {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}

.placeholder p {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  letter-spacing: 0.05em;
}

/* ========================================
   TAB BAR - 白底黑字极简
   ======================================== */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  padding-bottom: calc(10px + var(--safe-bottom));
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: var(--gray-light);
  text-decoration: none;
  transition: all 0.2s;
}

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

.tab-item i {
  font-size: 18px;
}

.tab-item span {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================================
   MODAL - 底部弹窗
   ======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 400;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header span {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.08em;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 140px;
  resize: none;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--cream);
}

.btn-secondary,
.btn-primary {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}

.btn-secondary:hover {
  background: var(--cream);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-dark);
}

/* ========================================
   TOAST
   ======================================== */

.toast {
  position: fixed;
  bottom: calc(100px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 500;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   SAFE AREA
   ======================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tab-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .app-main {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}
