* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f0f0;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero p,
.desc {
  color: #666;
  font-size: 14px;
}

h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.note-input {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: 1px solid #f0e6b8;
  border-radius: 8px;
  background: #fff9e6;
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.image-uploader {
  margin-top: 14px;
}

.upload-label {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed #b7bcc7;
  background: #f7f9fc;
  color: #566074;
  font-size: 13px;
  cursor: pointer;
}

.file-input-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-preview-wrap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-item {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.image-preview {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ececec;
  background: #fafafa;
}

.remove-image-btn {
  margin-top: 6px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
}

.expire-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.expire-input {
  max-width: 160px;
  margin-top: 0;
}

.expire-unit {
  color: #666;
  font-size: 14px;
}

.expire-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preset-btn {
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #555;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.live-status {
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8f6 0%, #ffffff 100%);
  border: 1px solid #ffe0d8;
}

.live-status-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.live-status-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.live-countdown {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e74c3c;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.live-status-desc {
  font-size: 13px;
  color: #777;
}

.message-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.message-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ececec;
  background: #fafafa;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
  margin-top: 8px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #e74c3c;
  color: #fff;
  flex: 1;
}

.btn-secondary {
  background: #eee;
  color: #666;
  flex: 1;
}

.btn-wechat {
  background: #07c160;
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.full {
  width: 100%;
  margin-top: 12px;
}

.hidden {
  display: none !important;
}

.center {
  text-align: center;
  padding: 40px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f8ef;
  color: #27ae60;
  font-size: 28px;
  font-weight: 700;
}

.result-card {
  text-align: center;
}

.tags {
  margin: 12px 0;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 4px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
}

.link-box {
  padding: 12px;
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  font-size: 13px;
  word-break: break-all;
  margin: 12px 0;
  text-align: left;
}

.burned-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.warning {
  background: #fff3cd;
  color: #856404;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.message-content {
  background: #fff9e6;
  border: 1px solid #f0e6b8;
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
}

.burn-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.ref-name {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.share-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.section-block {
  margin-top: 16px;
  text-align: left;
}

.section-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.status-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.status-meta {
  margin: 12px 0 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.wechat-guide {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.wechat-guide-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.wechat-guide-arrow {
  position: absolute;
  top: 12px;
  right: 22px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  animation: guidePulse 1.2s ease-in-out infinite;
}

.wechat-guide-card {
  position: absolute;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.wechat-guide-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.wechat-guide-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

@keyframes guidePulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.65; }
}

@media (max-width: 600px) {
  .row-2 {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .image-preview-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .message-images {
    grid-template-columns: 1fr;
  }
}
