/* ============================================================
 * user-center.css
 * 前台：个人中心 + 进度条 + 表单 + 勋章墙 + 弹窗 + 点评 + 申请弹窗
 * ============================================================ */

.cylxd-user-center {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ── 提示条 ── */
.cylxd-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}
.cylxd-notice a { color: #667eea; font-weight: 600; }
.cylxd-error { background: #fdecea; border-color: #f5c6cb; color: #721c24; }

/* ── 资料条 ── */
.cylxd-profile-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}
.cylxd-profile-bar .button {
    margin-left: auto;
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
}
.cylxd-profile-bar .button:hover {
    background: rgba(255,255,255,.35);
    color: #fff;
}

/* ── 资料弹窗 ── */
#cylxd-profile-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
}
#cylxd-profile-modal .cylxd-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
}
#cylxd-profile-modal label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    color: #333;
}
#cylxd-profile-modal input,
#cylxd-profile-modal select,
#cylxd-profile-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 14px;
    font-family: inherit;
}
#cylxd-profile-modal input:focus,
#cylxd-profile-modal select:focus,
#cylxd-profile-modal textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}

/* ── 进度条 ── */
.cylxd-progress-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cylxd-progress-bar {
    display: flex;
    gap: 6px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.cylxd-week-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    background: #f0f0f0; color: #999;
    transition: all .3s;
}
.cylxd-week-dot.done {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 2px 6px rgba(102,126,234,.4);
}
.cylxd-progress-text {
    font-size: 14px;
    color: #666;
}

/* ── 提交表单 ── */
.cylxd-submit-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cylxd-submit-section h3 {
    margin-top: 0;
    color: #333;
}
.cylxd-submit-section label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.cylxd-submit-section textarea,
.cylxd-submit-section input[type="number"] {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}
.cylxd-submit-section textarea:focus,
.cylxd-submit-section input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}
.cylxd-submit-section input[type="file"] {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}
.cylxd-submit-btn {
    margin-top: 8px;
    padding: 10px 24px !important;
    font-size: 15px !important;
}

/* ── 勋章墙 ── */
.cylxd-badge-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 24px;
}
.cylxd-badge-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.cylxd-badge-item {
    text-align: center;
    padding: 20px 12px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all .3s;
}
.cylxd-badge-item.earned {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f7ff, #fff);
    box-shadow: 0 4px 12px rgba(102,126,234,.15);
}
.cylxd-badge-item.pending {
    border-color: #ffc107;
    background: #fffde7;
}
.cylxd-badge-item.locked {
    opacity: .4;
    filter: grayscale(1);
}
.cylxd-badge-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.cylxd-badge-name {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}
.cylxd-badge-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.cylxd-badge-status {
    font-size: 11px;
    font-weight: 600;
}
.cylxd-badge-item.earned  .cylxd-badge-status { color: #4caf50; }
.cylxd-badge-item.pending .cylxd-badge-status { color: #f9a825; }
.cylxd-badge-item.locked  .cylxd-badge-status { color: #bbb; }

/* ── 勋章弹窗 ── */
#cylxd-badge-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.cylxd-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    animation: cylxdFadeIn .3s ease;
}
.cylxd-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    z-index: 1;
    animation: cylxdPopIn .4s cubic-bezier(.18,.89,.32,1.28);
}
.cylxd-modal-shine {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,215,0,.3), transparent, rgba(102,126,234,.3), transparent);
    animation: cylxdShine 3s linear infinite;
    pointer-events: none;
}
.cylxd-modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: cylxdBounce 1s ease infinite;
}
.cylxd-modal-content h2 {
    color: #333;
    margin: 0 0 12px;
    font-size: 22px;
}
.cylxd-modal-content p {
    color: #666;
    margin: 0 0 16px;
    line-height: 1.6;
}
.cylxd-modal-name {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin: 8px 0 16px;
}
.cylxd-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ── 导师点评（前台）── */
.cylxd-my-reviews {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    border-left: 4px solid #667eea;
}
.cylxd-my-reviews h3 { margin-top: 0; color: #333; }
.cylxd-review-item {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.cylxd-review-item p { margin: 6px 0; font-size: 13px; line-height: 1.6; }

/* ── 学员类别标签 ── */
.cylxd-type-tag {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.25);
}

/* ── 动画 ── */
@keyframes cylxdFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cylxdPopIn {
    from { transform: scale(.7); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
@keyframes cylxdBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes cylxdShine {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


.cylxd-user-center-shell {
    max-width: 1200px;
    margin: 0 auto;
    background: #f7f8fa;
    min-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
}

.cylxd-topbar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.cylxd-topbar button {
    margin-left: auto;
}

.cylxd-body {
    display: flex;
    min-height: 75vh;
}

.cylxd-sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 20px 0;
}
.cylxd-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cylxd-sidebar li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
}
.cylxd-sidebar li.active a {
    background: #f0f4ff;
    border-left-color: #667eea;
    color: #667eea;
    font-weight: 600;
}
.cylxd-sidebar li a:hover {
    background: #f7f8fa;
}

.cylxd-main {
    flex: 1;
    padding: 24px;
    background: #fff;
}


/* ===== 左右布局 ===== */
.cylxd-user-center-shell {
    max-width: 1200px;
    margin: 0 auto;
    background: #f7f8fa;
    min-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.cylxd-topbar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
}
.cylxd-topbar button {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.cylxd-body {
    display: flex;
    min-height: 75vh;
}

.cylxd-sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 16px 0;
}
.cylxd-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cylxd-sidebar li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    border-left: 4px solid transparent;
    font-size: 14px;
    transition: all 0.2s;
}
.cylxd-sidebar li a:hover {
    background: #f0f4ff;
    color: #667eea;
}
.cylxd-sidebar li.active a {
    background: #f0f4ff;
    border-left-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

.cylxd-main {
    flex: 1;
    padding: 24px 32px;
    background: #fff;
}

/* 主页卡片 */
.cylxd-home-actions {
    margin: 16px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 周报块 */
.cylxd-week-block {
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 点评块 */
.cylxd-review-block {
    background: #f9f9ff;
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 4px;
}