/* ============================================================
   代理商成长学院 · 前台全站样式
   视觉规范：灰色背景(#d9d9d9) + 白色卡片 + 橙色品牌色(#f15a23)
   ============================================================ */

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #d9d9d9;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1e263a;
  line-height: 1.6;
  padding: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* === Page Wrapper === */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #d9d9d9;
  min-height: 100vh;
  padding: 32px 40px;
}

/* === Top Navigation === */
.top-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  position: relative;
}
.logo-area { display: flex; align-items: center; gap: 12px; position: absolute; left: 0; }
.logo-icon {
  width: 42px; height: 42px; background: #f15a23; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
}
.logo-text { font-weight: 700; font-size: 22px; color: #1e263a; }
.logo-text span { color: #f15a23; }
.nav-links {
  display: flex; gap: 24px; background: white; padding: 8px 24px;
  border-radius: 40px; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.nav-links a {
  text-decoration: none; color: #4a5f7a; font-weight: 500; font-size: 15px;
  padding: 8px 0; border-bottom: 2px solid transparent; transition: 0.2s;
}
.nav-links a.active { color: #f15a23; border-bottom-color: #f15a23; font-weight: 600; }
.nav-links a:hover { color: #f15a23; }
.user-area { display: flex; align-items: center; gap: 16px; position: absolute; right: 0; }
.user-area .user-name { font-size: 14px; font-weight: 500; }
.user-avatar {
  width: 40px; height: 40px; background: #f15a23; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 18px;
}

/* === Search Bar === */
.search-bar {
  background: white; border-radius: 48px; padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04); margin-bottom: 24px;
  border: 1px solid #d0d0d0;
}
.search-bar input {
  flex: 1; border: none; padding: 14px 0; font-size: 15px;
  background: transparent; outline: none;
}
.search-btn {
  background: #f15a23; color: white; border: none;
  padding: 12px 28px; border-radius: 40px; font-weight: 600;
  font-size: 15px; cursor: pointer; transition: 0.2s;
}
.search-btn:hover { background: #d94d1a; }

/* === Announce Bar === */
.announce-bar {
  background: white; border-radius: 20px; padding: 14px 24px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04); border: 1px solid #d0d0d0;
  border-left: 5px solid #f15a23;
}
.announce-bar i { color: #f15a23; font-size: 22px; }
.announce-bar .text { flex: 1; font-size: 14px; color: #3a4f66; }
.announce-bar .badge {
  background: #fef3c7; color: #8a5a00; padding: 6px 14px;
  border-radius: 20px; font-size: 13px; font-weight: 600;
}

/* === Stats Cards === */
.top-bar-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 28px;
}
.info-card {
  background: white; border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04); border: 1px solid #e0d9ce;
}
.info-card h3 { font-weight: 650; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-card h3 i { color: #f15a23; }
.mini-progress { display: flex; gap: 20px; align-items: center; }
.mini-stat { text-align: center; }
.mini-stat .num { font-size: 20px; font-weight: 700; }
.mini-stat .lbl { font-size: 11px; color: #68768a; }
.points-inline { display: flex; align-items: center; gap: 12px; }
.points-inline .big-num { font-size: 32px; font-weight: 700; color: #f15a23; }
.points-inline .hint { font-size: 12px; color: #5e7390; }

/* === Core Entry Grid === */
.core-entry-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 32px;
}
.core-card {
  background: linear-gradient(135deg, #FFF7E8 0%, #FFEFD3 100%);
  border-radius: 22px; padding: 28px 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #F2E3C6;
  text-decoration: none; color: inherit; display: flex;
  align-items: flex-start; gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.core-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.1);
}
.core-icon {
  width: 52px; height: 52px; background: #fff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #C17F3A; font-size: 26px; flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}
.core-content { flex: 1; }
.core-content h3 { font-weight: 650; font-size: 18px; margin-bottom: 8px; color: #2e2a24; }
.core-content p { font-size: 13px; color: #7f6e57; line-height: 1.6; margin-bottom: 4px; }
.core-content .arrow-link {
  color: #bb7417; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  transition: color 0.2s;
}
.core-content .arrow-link:hover { color: #f15a23; }

/* === Section Header === */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid #e8e8e8;
}
.section-header h2 {
  font-weight: 650; font-size: 20px;
  display: flex; align-items: center; gap: 8px;
  border-left: 5px solid #f15a23; padding-left: 14px;
}
.section-header h2 i { color: #f15a23; }
.more-link { color: #f15a23; font-weight: 500; font-size: 14px; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* === Course Grid === */
.course-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 32px;
}
.course-card {
  background: white; border-radius: 18px; padding: 20px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04); border: 1px solid #e0d9ce;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.course-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.course-badge { display: flex; justify-content: space-between; margin-bottom: 12px; }
.tag-required {
  background: #fff1eb; color: #f15a23; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
}
.tag-optional {
  background: #e8f0fe; color: #1e3a5f; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
}
.course-title { font-weight: 650; font-size: 16px; margin-bottom: 6px; }
.course-desc { font-size: 12px; color: #5e7390; margin-bottom: 16px; flex: 1; }
.course-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #6a829e; }
.btn-start {
  margin-left: auto; background: #6b6f7c; color: white; padding: 8px 16px;
  border-radius: 24px; font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background 0.2s; cursor: pointer; border: none;
}
.btn-start:hover { background: #4f535f; }

/* === Product Filter === */
.product-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.product-filter-chip {
  background: white; border: 1px solid #d0d0d0; padding: 6px 16px;
  border-radius: 24px; font-size: 13px; color: #1e3a6f; cursor: pointer;
  transition: 0.2s;
}
.product-filter-chip.active,
.product-filter-chip:hover {
  background: #f15a23; color: white; border-color: #f15a23;
}

/* === Product Grid === */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 32px;
}
.product-card {
  background: white; border-radius: 18px; padding: 18px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04); border: 1px solid #e0d9ce;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform 0.15s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.product-badge { display: flex; justify-content: space-between; margin-bottom: 12px; }
.tag {
  background: #fff1eb; color: #f15a23; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
}
.product-title { font-weight: 650; font-size: 16px; margin-bottom: 6px; }
.product-desc { font-size: 12px; color: #5e7390; margin-bottom: 12px; flex: 1; }
.resource-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.res-tag {
  background: #f8fafd; border: 1px solid #e2e9f2; padding: 4px 10px;
  border-radius: 16px; font-size: 11px; color: #2e4b6e; font-weight: 500;
}
.res-tag i { color: #f15a23; font-size: 11px; }
.card-meta {
  display: flex; align-items: center; gap: 12px; font-size: 12px; color: #6a829e;
  border-top: 1px solid #f0f4fa; padding-top: 12px; margin-top: 6px;
}
.detail-btn {
  margin-left: auto; background: #6b6f7c; color: white; padding: 6px 14px;
  border-radius: 20px; font-weight: 500; font-size: 12px;
  transition: background 0.2s; cursor: pointer; border: none;
}
.detail-btn:hover { background: #4f535f; }

/* === Footer === */
.footnote {
  text-align: center; margin-top: 24px; color: #7a7a7a;
  font-size: 13px; border-top: 1px solid #d0d0d0; padding-top: 20px;
}

/* === Top Bar (work submit pages) === */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.logo { font-weight: 700; font-size: 22px; }
.logo span { color: #f15a23; }
.date-badge {
  background: #f15a23; color: white; padding: 8px 20px;
  border-radius: 40px; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 14px rgba(241,90,35,0.2);
}

/* === Steps Indicator === */
.steps-indicator {
  display: flex; justify-content: center; margin-bottom: 40px;
  gap: 14px; flex-wrap: wrap;
}
.step-item {
  display: flex; align-items: center; gap: 8px; padding: 12px 24px;
  border-radius: 40px; background: white; border: 2px solid #c0c0c0;
  font-weight: 500; color: #7a8fa8; transition: all 0.2s; font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.step-item.active {
  border-color: #f15a23; color: #f15a23; background: #fff8f5;
  font-weight: 700; box-shadow: 0 6px 16px rgba(241,90,35,0.12);
}
.step-item.completed {
  border-color: #1e7a44; color: #1e7a44; background: #f0faf0;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: #e0e0e0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.step-item.active .step-num { background: #f15a23; color: white; }
.step-item.completed .step-num { background: #1e7a44; color: white; }

/* === Card (Form cards) === */
.card {
  background: white; border-radius: 28px; padding: 34px 38px;
  box-shadow: 0 8px 32px -10px rgba(0,0,0,0.1);
  border: 1px solid #d0d0d0; margin-bottom: 32px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 18px;
  border-bottom: 2px solid #e8e8e8;
}
.card-header-left { display: flex; align-items: center; gap: 12px; }
.card-header h2 {
  font-weight: 650; font-size: 20px; display: flex; align-items: center; gap: 8px;
}
.card-header h2 i { color: #f15a23; }

/* === Forms === */
.form-group { margin-bottom: 24px; }
.form-label {
  font-weight: 600; font-size: 14px; margin-bottom: 8px;
  display: block; color: #2e405b;
}
.form-control {
  padding: 12px 16px; border-radius: 14px; border: 1px solid #c0c0c0;
  font-family: inherit; font-size: 14px; width: 100%;
  transition: border 0.2s; background: #fafafa;
}
.form-control:focus { outline: none; border-color: #f15a23; }
select.form-control {
  padding: 12px 36px 12px 16px; appearance: none;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%235e7390'/%3E%3C/svg%3E") no-repeat right 12px center;
}
textarea.form-control { min-height: 90px; resize: vertical; }

/* === Upload Button === */
.upload-btn {
  background: #fef6ef; color: #f15a23; border: 1px solid #fbc6b2;
  padding: 10px 18px; border-radius: 20px; cursor: pointer;
  display: inline-block; font-size: 13px; white-space: nowrap;
  transition: 0.2s;
}
.upload-btn:hover { background: #fff1eb; }
.upload-btn i { margin-right: 4px; }

/* === Buttons === */
.btn-row {
  display: flex; justify-content: center; align-items: center;
  margin-top: 20px; gap: 10px;
  border-top: 1px solid #e0e0e0; padding-top: 20px;
}
.btn-group { display: flex; gap: 14px; }
.btn {
  padding: 12px 24px; border-radius: 50px; font-weight: 600;
  font-size: 14px; cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: 0.2s;
}
.btn-primary { background: #f15a23; color: white; }
.btn-primary:hover { background: #d94d1a; }
.btn-outline { background: white; border: 1px solid #c0c0c0; color: #3d5068; }
.btn-outline:hover { background: #f8f8f8; }
.btn-pause { background: #fff8f5; border: 1px solid #fbc6b2; color: #f15a23; }
.btn-save-main {
  background: #f15a23; color: white; font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: 50px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; border: none;
  transition: 0.2s;
}
.btn-save-main:hover { background: #d94d1a; }

/* === Grade & Cases === */
.grade-section { margin-bottom: 40px; }
.grade-badge {
  padding: 8px 28px; border-radius: 24px; font-weight: 700;
  font-size: 16px; color: white; display: inline-block;
  background: #1e7a44;
}
.case-row {
  background: #f0faf0; border: 1px solid #d0e8d0;
  padding: 16px 18px; border-radius: 16px; margin-bottom: 16px;
}
.case-main { display: flex; gap: 12px; align-items: center; }
.case-num { font-weight: 700; width: 28px; text-align: center; font-size: 14px; flex-shrink: 0; }
.add-case-btn {
  color: white; background: #1e7a44; font-weight: 600; cursor: pointer;
  font-size: 14px; border: none; padding: 10px 20px; border-radius: 24px;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
}
.add-case-btn:hover { background: #165a32; }
.delete-case-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; color: #c0392b; border: 1px solid #c0392b;
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  font-size: 13px; font-weight: 500; margin-top: 10px;
}
.delete-case-btn:hover { background: #c0392b; color: white; }

/* === Section Number === */
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: #f15a23; color: white;
  border-radius: 12px; font-weight: 700; font-size: 17px; margin-right: 10px;
}

/* === Instruction Card === */
.instruction-card {
  background: #f9f9f9; border: 1px solid #d0d0d0; border-radius: 16px;
  padding: 18px 20px; margin-top: 18px; margin-bottom: 18px; font-size: 13px;
  color: #3a4f66; line-height: 1.9;
}
.instruction-card strong { color: #1e7a44; }
.demo-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #f15a23; font-weight: 500; cursor: pointer; text-decoration: none;
  background: #fff1eb; padding: 6px 14px; border-radius: 20px;
  margin: 6px 8px 6px 0; font-size: 12px;
}

/* === Highlight Card === */
.highlight-card {
  background: #fffaf5; border: 1px solid #fbc68b; border-radius: 24px;
  padding: 24px 28px; margin-bottom: 28px;
}

/* === Score (Mentor Evaluation) === */
.score-block {
  padding: 18px 20px; border: 1px solid #e8e8e8;
  border-radius: 16px; margin-bottom: 16px; background: #fafcff;
}
.score-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: #1e263a; }
.score-desc { font-size: 13px; color: #6a7e9c; margin-bottom: 12px; line-height: 1.5; }
.score-stars-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.score-stars-row i { font-size: 28px; color: #d0d0d0; cursor: pointer; transition: color 0.15s; }
.score-stars-row i.active { color: #f5a623; }
.score-stars-row i:hover { color: #f5a623; }
.star-label { font-size: 13px; color: #8a8a8a; margin-left: 8px; font-weight: 500; }
.remark-input { margin-top: 14px; display: none; }
.remark-input.show { display: block; }
.remark-input textarea {
  min-height: 80px; font-size: 13px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid #c0392b; background: #fefafa; width: 100%; font-family: inherit;
}
.remark-hint { font-size: 12px; color: #c0392b; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.score-summary {
  background: #f8fafd; border-radius: 18px; padding: 20px 24px;
  margin-top: 24px; text-align: center;
}
.score-summary .total-score { font-size: 48px; font-weight: 700; color: #f15a23; }
.score-summary .total-label { font-size: 14px; color: #5e7390; margin-top: 4px; }

/* === Section Title (Mentor Evaluation) === */
.section-title-eval {
  font-weight: 650; font-size: 17px; margin: 28px 0 16px;
  color: #2a7ab5; padding-left: 12px; border-left: 4px solid #2a7ab5;
  display: flex; align-items: center; gap: 8px;
}
.section-title-eval .section-score {
  font-size: 14px; font-weight: 500; color: #6a829e; margin-left: auto;
}

/* === Alert Card === */
.alert-card {
  background: #fff8f5; border: 1px solid #fbc6b2; border-radius: 20px;
  padding: 16px 22px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #5a3a20;
}
.alert-card i { color: #f15a23; font-size: 20px; }

/* === Auto Save Message === */
.auto-save-msg { text-align: center; color: #7a7a7a; font-size: 13px; margin-top: 14px; }

/* === Watermark Overlay === */
.watermark-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9999;
  background-repeat: repeat;
  opacity: 0.06;
}

/* === Progress Bar === */
.progress-bar-wrap {
  height: 6px; background: #e9eef4; border-radius: 10px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: #f15a23; border-radius: 10px; transition: width 0.3s;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .course-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .core-entry-grid { grid-template-columns: 1fr; }
  .top-bar-stats { grid-template-columns: 1fr; }
}
/* 评价页面专用 */
.section-title-eval {
  font-weight: 650; font-size: 17px; margin: 28px 0 16px;
  color: #2a7ab5; padding-left: 12px; border-left: 4px solid #2a7ab5;
  display: flex; align-items: center; gap: 8px;
}
.section-title-eval .section-score {
  font-size: 14px; font-weight: 500; color: #6a829e; margin-left: auto;
}
.score-block {
  padding: 18px 20px; border: 1px solid #e8e8e8;
  border-radius: 16px; margin-bottom: 16px; background: #fafcff;
}
.score-block .score-title {
  font-weight: 600; font-size: 15px; margin-bottom: 12px; color: #1e263a; line-height: 1.45;
}
.score-block .score-stars-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.score-block .remark-input {
  margin-top: 14px; display: none;
}
.score-block .remark-input .remark-hint {
  font-size: 12px; color: #c0392b; margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}

/* 按钮样式 */
.btn-primary-academy {
  padding: 14px 32px; border-radius: 50px; font-weight: 700;
  font-size: 16px; cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  background: #f15a23; color: white;
  box-shadow: 0 6px 16px -6px rgba(241,90,35,0.3);
  text-decoration: none; transition: 0.2s;
}
.btn-primary-academy:hover { background: #d94d1a; }
.btn-outline-academy {
  padding: 14px 32px; border-radius: 50px; font-weight: 700;
  font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid #c0c0c0; color: #3d5068;
  text-decoration: none; transition: 0.2s;
}
.btn-outline-academy:hover { background: #f8f8f8; }

/* 筛选标签 */
.filter-tag {
  display: inline-block; padding: 8px 18px; border-radius: 30px;
  background: #f0f0f0; color: #555; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: 0.2s;
}
.filter-tag.active, .filter-tag:hover {
  background: #f15a23; color: white;
}

/* 表单控件 */
.form-control {
  padding: 12px 16px; border-radius: 14px; border: 1px solid #c0c0c0;
  font-family: inherit; font-size: 14px; width: 100%;
  background: #fafafa; transition: border 0.2s;
}
.form-control:focus { outline: none; border-color: #f15a23; }

/* 提醒卡片 */
.alert-card {
  background: #fff8f5; border: 1px solid #fbc6b2; border-radius: 20px;
  padding: 16px 22px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #5a3a20;
}
.alert-card i { color: #f15a23; font-size: 20px; }

@media (max-width: 768px) {
  .page-wrapper { padding: 16px; }
  .course-grid, .product-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .card { padding: 20px; border-radius: 20px; }
  .top-nav { flex-wrap: wrap; gap: 12px; }
}
