* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f6fa;
  color: #202633;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

.page {
  min-height: 100vh;
  margin: 0 auto;
  background: #f5f6fa;
}

.state {
  min-height: 100vh;
  padding: 120px 24px 40px;
  text-align: center;
  color: #ffffff;
  background: #f36f21;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

.job {
  min-height: 100vh;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  background: #f5f6fa;
}

.job-container {
  position: relative;
  z-index: 2;
  padding: calc(14px + env(safe-area-inset-top)) 14px 24px;
}

.job-header,
.job-description,
.safety-tips {
  border: 1px solid rgba(225, 229, 236, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.job-header {
  padding: 22px 18px;
}

h1 {
  margin: 0;
  color: #202633;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
  gap: 8px;
}

.job-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #606a78;
  background: #f7f8fb;
  font-size: 13px;
}

.publisher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef0f4;
  font-size: 15px;
}

.publisher__label {
  color: #8b93a1;
  font-size: 13px;
}

h2 {
  margin: 0;
  color: #202633;
  font-size: 18px;
  line-height: 1.4;
}

.job-description,
.safety-tips {
  margin-top: 10px;
  padding: 20px 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.tag {
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff0e6;
  color: #c84d0a;
  font-size: 13px;
}

p {
  margin: 16px 0 0;
  color: #515866;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.safety-tips {
  background: #fff8f4;
}

.safety-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.safety-header h2 {
  color: #ff6b35;
}

.safety-icon {
  width: 18px;
  height: 18px;
  border: 5px solid #ff6b35;
  border-radius: 50%;
}

.safety-content {
  margin-top: 14px;
}

.safety-item {
  position: relative;
  margin: 0 0 10px;
  padding-left: 16px;
  color: #666666;
  font-size: 13px;
  line-height: 1.65;
}

.safety-item::before {
  position: absolute;
  top: 0;
  left: 2px;
  color: #ff6b35;
  content: "\2022";
}

.safety-footer {
  margin-top: 16px;
  color: #999999;
  font-size: 12px;
  text-align: center;
}

.action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(225, 229, 236, 0.7);
  background: rgba(255, 255, 255, 0.97);
}

.action-bar__copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.action-bar__copy strong {
  font-size: 14px;
}

.action-bar__copy span {
  color: #89909c;
  font-size: 11px;
}

.launch {
  flex: none;
  width: 148px;
  min-height: 48px;
}

wx-open-launch-weapp {
  display: block;
  width: 100%;
}

.launch-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 24px;
  padding: 13px 16px;
  background: #ff5a1f;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 720px) {
  .page {
    max-width: 720px;
  }

  .action-bar {
    right: 50%;
    left: 50%;
    width: 720px;
    transform: translateX(-50%);
  }
}

@media (max-width: 380px) {
  .action-bar__copy span {
    display: none;
  }

  .launch {
    width: 142px;
  }
}
