:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fb;
  color: #1d2129;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #f4f6fb;
}

body {
  display: flex;
  justify-content: center;
  padding: 16px 0 0;
}

.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  background: #eef2fb;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 20px 60px rgba(72, 91, 125, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  border: none;
  background: rgba(255, 255, 255, 0.7);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(64, 84, 156, 0.08);
  cursor: pointer;
}

.page-content {
  padding: 0 16px 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #5f83ff 0%, #88a6ff 100%);
  color: white;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy {
  display: grid;
  gap: 8px;
}

.hero-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-card h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.hero-button {
  width: fit-content;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #ffffff99;
  color: #1b2565;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

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

.service-item {
  border: none;
  background: white;
  border-radius: 18px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #2a3045;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(52, 75, 153, 0.08);
}

.service-emoji {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  font-size: 22px;
}

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shortcut-card {
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: white;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 16px 30px rgba(52, 75, 153, 0.08);
  cursor: pointer;
}

.shortcut-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.shortcut-title {
  margin: 0;
  font-weight: 700;
}

.shortcut-arrow {
  font-size: 20px;
  color: #98a2c0;
}

.assistant-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 30px rgba(52, 75, 153, 0.08);
}

.assistant-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7b8aff 0%, #81d2ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
}

.assistant-copy {
  display: grid;
  gap: 4px;
}

.assistant-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.assistant-text {
  margin: 0;
  color: #6f758f;
  font-size: 13px;
}

.delivery-page {
  gap: 10px;
  padding: 10px 12px 100px;
}

.delivery-header {
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
}

.delivery-header .app-title {
  font-size: 15px;
}

.section-card.delivery-section {
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(42, 62, 112, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.platform-item {
  border: 1px solid transparent;
  background: #f6f7fa;
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #303746;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.platform-item.active {
  border-color: #2e5bff;
  background: #ffffff;
}

.platform-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.platform-icon.taobao {
  background: #ff5a45;
}

.platform-icon.meituan {
  background: #ffd865;
  color: #2f2f2f;
}

.address-block {
  display: grid;
  gap: 6px;
}

.address-group-title {
  margin-top: 4px;
  font-size: 13px;
  color: #687188;
  font-weight: 600;
}

.address-card {
  background: #f7f8fa;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: left;
}

.address-card.active {
  background: #f4f7ff;
  border-color: #2e5bff;
}

.address-card-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}

.address-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef4ff;
  color: #3f56ff;
  font-size: 11px;
  font-weight: 700;
}

.address-card p {
  margin: 0;
  color: #283247;
  line-height: 1.35;
  font-size: 13px;
}

.address-name {
  color: #9097a6 !important;
  font-size: 12px !important;
}

.default-address-label {
  background: #e4f8ea;
  color: #2aa65a;
}

.address-tag.tag-1 {
  background: #eaf2ff;
  color: #2f6bff;
}

.address-tag.tag-2 {
  background: #eaf2ff;
  color: #2f6bff;
}

.add-address-button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 5px;
  background: white;
  color: #3f56ff;
  font-weight: 700;
  border: 1px solid #2e5bff;
}

.delivery-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: 0 -3px 10px rgba(102, 120, 178, 0.08);
}

.delivery-message {
  min-height: 18px;
  margin-top: 8px;
  color: #d9534f;
  font-size: 12px;
  text-align: center;
}

.delivery-empty {
  margin: 10px 0;
  color: #8b95a7;
  font-size: 13px;
}

.confirm-button {
  width: 100%;
  padding: 10px 0;
  border-radius: 4px;
  background: #2e5bff;
  color: white;
  font-weight: 700;
  font-size: 15px;
}

.back-button,
.close-button {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 0;
}

@media (max-width: 360px) {
  .app-shell {
    border-radius: 0;
  }

  .page-content {
    padding-bottom: 140px;
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px 18px;
  background: transparent;
}

.nav-item {
  border: none;
  background: white;
  border-radius: 18px;
  min-width: 56px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6f758f;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(52, 75, 153, 0.08);
}

.nav-item.active {
  color: #3f56ff;
}

.nav-center {
  min-width: 62px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f84ff 0%, #94d4ff 100%);
  color: white;
  font-size: 28px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(95, 132, 255, 0.3);
}

@media (max-width: 360px) {
  .app-shell {
    border-radius: 0;
  }

  .page-content {
    padding-bottom: 110px;
  }
}
