/* ============================================================
   成为制谱 - 蓝色大气风（#1E9FFF）
   命名空间: cy- (certify)
   与 index.css / user_center.css / creator_center.css 协同
   ============================================================ */

/* ---------- 容器宽度（PC 端单独扩宽，base narrow 720px 太挤） ---------- */
@media (min-width: 768px) {
  body[data-page="certify"] .ys-container.narrow { max-width: 880px; }
}
@media (min-width: 1024px) {
  body[data-page="certify"] .ys-container.narrow { max-width: 1000px; }
}
@media (min-width: 1280px) {
  body[data-page="certify"] .ys-container.narrow { max-width: 1080px; }
}

/* ---------- 状态卡（页面顶部那个动态卡） ---------- */
.cy-state-panel {
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 16px;
}
.cy-state-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cy-state-card::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cy-state-card .cy-state-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.cy-state-card .cy-state-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.cy-state-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}
.cy-state-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}
.cy-state-card .cy-state-actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cy-state-card .cy-state-actions .ys-btn {
  background: #fff;
  color: #1E9FFF;
  border: 0;
  font-weight: 500;
  padding: 8px 16px;
  min-height: 36px;
  font-size: 13px;
}
.cy-state-card .cy-state-actions .ys-btn:hover {
  background: #f0f9ff;
  color: #0E7BD8;
  border: 0;
}
.cy-state-card .cy-state-actions .ys-btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cy-state-card .cy-state-actions .ys-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cy-state-card.tone-pending {
  background: linear-gradient(135deg, #1E9FFF 0%, #0E7BD8 100%);
}
.cy-state-card.tone-reviewing {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}
.cy-state-card.tone-rejected {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}
.cy-state-card.tone-approved {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}
.cy-state-card.tone-loggedout {
  background: linear-gradient(135deg, #1E9FFF 0%, #0E7BD8 100%);
}
.cy-state-card.tone-info {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}
.cy-state-card .cy-state-meta {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.cy-state-loading {
  padding: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
  .cy-state-card { flex-wrap: wrap; }
  .cy-state-card .cy-state-actions { width: 100%; }
  .cy-state-card .cy-state-actions .ys-btn { flex: 1; }
}

/* ---------- 上传区 ---------- */
.cy-uploader {
  margin-top: 16px;
}
.cy-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed #bae6fd;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}
.cy-upload-area:hover, .cy-upload-area.drag-over {
  border-color: #1E9FFF;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  transform: translateY(-1px);
}
.cy-upload-area input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cy-upload-icon {
  font-size: 48px;
  margin-bottom: 8px;
  line-height: 1;
  filter: grayscale(0.2);
}
.cy-upload-title {
  font-size: 15px;
  font-weight: 500;
  color: #0c4a6e;
  margin-bottom: 4px;
}
.cy-upload-hint {
  font-size: 12px;
  color: #475569;
}
.cy-upload-progress {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f0f9ff;
  border: 1px dashed #bae6fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cy-upload-progress-bar {
  flex: 1;
  height: 10px;
  background: #e0f2fe;
  border-radius: 100px;
  overflow: hidden;
}
.cy-upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1E9FFF, #0E7BD8);
  border-radius: 100px;
  transition: width 0.2s;
}
.cy-upload-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: #1E9FFF;
  min-width: 72px;
  text-align: right;
  white-space: nowrap;
}

/* 上传区主操作区：把「提交审核」按钮单独占一行 + 加大，让用户一眼能看到 */
.cy-actions-main {
  margin-top: 18px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.cy-actions-main .ys-btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  min-height: 52px;
  box-shadow: 0 4px 14px rgba(30, 159, 255, 0.18);
}
.cy-actions-main .ys-btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 159, 255, 0.32);
}
.cy-actions-main .ys-btn:disabled {
  box-shadow: none;
  opacity: 0.6;
  cursor: not-allowed;
}
.cy-upload-result {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #0c4a6e;
}
.cy-upload-result .cy-result-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.cy-upload-result .cy-result-body {
  flex: 1;
  min-width: 0;
}
.cy-upload-result .cy-result-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cy-upload-result .cy-result-meta {
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}
.cy-upload-msg {
  margin-top: 10px;
  font-size: 13px;
  display: none;
}
.cy-upload-msg.show { display: block; }
.cy-upload-msg.error { color: #dc2626; }
.cy-upload-msg.success { color: #059669; }
.cy-upload-msg.info { color: #1E9FFF; }

/* 状态卡 + 上传区 根据认证状态显示/隐藏 */
#cy-upload-section.hidden,
#cy-bottom-cta.hidden { display: none; }

/* 顶部 Hero 里的 CTA 在已认证时也显示「前往创作者中心」 */
#cy-cta-btn,
.cy-hero-cta .ys-btn {
  background: #fff;
  color: #1E9FFF;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 32px;
  min-height: 48px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
#cy-cta-btn:hover,
.cy-hero-cta .ys-btn:hover {
  background: #f0f9ff;
  color: #0E7BD8;
  border: 0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
#cy-cta-btn:disabled,
.cy-hero-cta .ys-btn:disabled {
  background: rgba(255, 255, 255, 0.7);
  color: #1E9FFF;
  cursor: default;
}

/* ---------- 顶部 Hero ---------- */
.cy-hero {
  position: relative;
  background: linear-gradient(135deg, #1E9FFF 0%, #0E7BD8 60%, #0a5fa8 100%);
  color: #fff;
  padding: 60px 16px 70px;
  text-align: center;
  overflow: hidden;
}
.cy-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12) 0%, transparent 40%);
  pointer-events: none;
}
.cy-hero-bg::after {
  content: '♪ ♫ ♪ ♫ ♪';
  position: absolute;
  inset: 0;
  font-size: 100px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}
.cy-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.cy-hero-icon {
  font-size: 48px;
  margin-bottom: 12px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
/* 已认证创作者：换成绿色调（更"已达成"的氛围） */
.cy-hero.cy-hero-creator {
  background: linear-gradient(135deg, #10B981 0%, #059669 60%, #047857 100%);
}
.cy-hero.cy-hero-creator .cy-hero-bg::after { color: rgba(255, 255, 255, 0.05); }
.cy-hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.cy-hero-sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}
.cy-hero-cta { margin-bottom: 28px; }
.cy-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cy-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cy-tag-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #fff;
  color: #1E9FFF;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .cy-hero { padding: 80px 20px 90px; }
  .cy-hero h1 { font-size: 48px; }
  .cy-hero-sub { font-size: 17px; }
  .cy-hero-icon { font-size: 64px; }
}

/* Hero CTA 按钮（白底蓝字主按钮） */
#cy-cta-btn,
.cy-hero-cta .ys-btn {
  background: #fff;
  color: #1E9FFF;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 32px;
  min-height: 48px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
#cy-cta-btn:hover,
.cy-hero-cta .ys-btn:hover {
  background: #f0f9ff;
  color: #0E7BD8;
  border: 0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
#cy-cta-btn:disabled,
.cy-hero-cta .ys-btn:disabled {
  background: rgba(255, 255, 255, 0.7);
  color: #1E9FFF;
  cursor: default;
}

/* ---------- 步骤标识 ---------- */
.cy-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #1E9FFF, #0E7BD8);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- 材料清单 ---------- */
.cy-materials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.cy-materials li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  transition: all 0.2s;
}
.cy-materials li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 159, 255, 0.12);
  border-color: #7dd3fc;
}
.cy-mat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(30, 159, 255, 0.1);
}
.cy-mat-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #0c4a6e;
}
.cy-mat-body p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .cy-materials { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 示例图区 ---------- */
.cy-sample {
  position: relative;
  margin: 16px 0 0;
  padding: 16px;
  background: #fafafa;
  border: 1px dashed #d4d4d8;
  border-radius: 12px;
}
.cy-sample-label {
  font-size: 13px;
  color: #71717a;
  margin-bottom: 10px;
  font-weight: 500;
}
.cy-sample-img {
  position: relative;
  text-align: center;
}
.cy-sample-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}
.cy-sample-fallback {
  padding: 30px 20px;
  color: #71717a;
  font-size: 14px;
  line-height: 1.8;
  background: #f5f5f5;
  border-radius: 8px;
}
.cy-sample-arrow {
  display: none;
  position: absolute;
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.cy-sample-tip {
  margin-top: 10px;
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  font-weight: 500;
}
@media (min-width: 768px) {
  .cy-sample { padding: 24px; }
}

/* ---------- 行动按钮区 ---------- */
.cy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.cy-state {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.cy-state.show { display: block; }
.cy-state.pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.cy-state.approved {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cy-state.rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ---------- 重要声明 callout ---------- */
.cy-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
}
.cy-callout-icon {
  flex-shrink: 0;
  font-size: 28px;
  color: #f59e0b;
  line-height: 1;
}
.cy-callout-body h3 {
  margin: 0 0 6px;
  color: #92400e;
  font-size: 16px;
  font-weight: 600;
}
.cy-callout-body p {
  margin: 0;
  color: #78350f;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 收益说明卡片 ---------- */
.cy-revenue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
.cy-revenue-card {
  padding: 20px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}
.cy-revenue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 159, 255, 0.12);
  border-color: #7dd3fc;
}
.cy-revenue-icon {
  font-size: 36px;
  margin-bottom: 8px;
  display: inline-block;
  line-height: 1;
}
.cy-revenue-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #0c4a6e;
}
.cy-revenue-card p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
@media (min-width: 600px) {
  .cy-revenue-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ ---------- */
.cy-faq details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  transition: all 0.15s;
  overflow: hidden;
}
.cy-faq details[open] {
  border-color: #1E9FFF;
  box-shadow: 0 4px 12px rgba(30, 159, 255, 0.08);
}
.cy-faq summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}
.cy-faq summary::-webkit-details-marker { display: none; }
.cy-faq summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #1E9FFF;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}
.cy-faq details[open] summary::after {
  content: '−';
}
.cy-faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 底部 CTA ---------- */
.cy-bottom-cta {
  text-align: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}
.cy-bottom-cta h2 { color: #0c4a6e; }
.cy-bottom-cta p { color: #475569; margin-bottom: 8px; }
.cy-bottom-cta .cy-actions { justify-content: center; }

/* ---------- 链接样式 ---------- */
.ys-become-creator-link {
  color: #4FB3FF !important;
  font-weight: 500;
}
.ys-become-creator-link:hover {
  color: #fff !important;
  text-decoration: underline;
}
.ys-link {
  color: #1E9FFF;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}
.ys-link:hover {
  color: #0E7BD8;
  border-bottom-color: #0E7BD8;
}
