/* design/prototypes/styles/common.css */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* Device Shell for Preview */
.device-simulator {
  width: 393px;
  height: 852px;
  background-color: #F8FAFC;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

/* iOS Status Bar Mock */
.status-bar {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  z-index: 100;
  position: relative;
}

/* WeChat Mini Program Nav Bar */
.wx-nav-bar {
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 16px;
  font-weight: 500;
}

.wx-capsule {
  position: absolute;
  right: 16px;
  width: 87px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.15);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: #000;
}

.wx-capsule-dark {
  background: rgba(255, 255, 255, 0.6);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.wx-capsule i {
  font-size: 16px;
  opacity: 0.8;
}

.wx-capsule-divider {
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.2);
}

/* Common Components */
.btn-primary {
  background-color: #F97316;
  color: white;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s;
}

.btn-primary:active {
  opacity: 0.8;
}

.btn-primary.disabled {
  background-color: #CBD5E1;
  color: #F8FAFC;
  pointer-events: none;
}

.btn-secondary {
  background-color: white;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s;
}

.btn-secondary:active {
  background-color: #F1F5F9;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 34px);
}

/* Animations */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out forwards;
}

/* Hide scrollbar */
::-webkit-scrollbar {
  display: none;
}
