/* 自荐墙前台 + 用户端面板 */

/* —— 用户端面板 —— */
.rw-user-page .content-body { max-width: 860px; }
.rw-user-page .alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}
.rw-user-page .alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.rw-user-page .alert-error,
.rw-user-page .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.rw-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rw-panel__head {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}
.rw-panel__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.rw-panel__body { padding: 18px; }

.rw-muted { color: #64748b; font-size: 13px; line-height: 1.5; }
.rw-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.rw-badge--on { background: #dbeafe; color: #1d4ed8; }
.rw-badge--pending { background: #fef3c7; color: #92400e; }
.rw-badge--off { background: #f1f5f9; color: #64748b; }

.rw-status-block { display: flex; flex-direction: column; gap: 12px; }
.rw-active-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.rw-active-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
}
.rw-active-list__links {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.rw-active-list a {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.rw-active-list a:hover { text-decoration: underline; }
.rw-tag-mod {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e0e7ff;
    color: #3730a3;
    vertical-align: middle;
}

.rw-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}
.rw-avatar-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin-bottom: 18px;
}
.rw-avatar-upload__fields {
    flex: 1 1 160px;
    min-width: 0;
}
.rw-avatar-upload__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.rw-avatar-upload input[type="file"] {
    font-size: 13px;
    max-width: 100%;
}

.rw-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.rw-form-grid .full { grid-column: 1 / -1; }
.rw-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.rw-user-page .form-control,
.rw-user-page select.form-control,
.rw-user-page textarea.form-control {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
}
.rw-user-page textarea.form-control {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}
.rw-user-page .form-control:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}
.rw-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}
.rw-form-actions--agree {
    gap: 12px 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}
.rw-user-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}
.rw-user-page .btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}
.rw-user-page .btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.rw-user-page .btn-outline {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

.rw-hint {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}
.rw-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.55;
}
.rw-notice strong {
    display: block;
    margin-bottom: 4px;
    color: #c2410c;
}
.rw-field label.rw-agree,
.rw-form-actions--agree .rw-agree,
label.rw-agree {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
    font-size: 14px;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
}
.rw-agree input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #0f172a;
}
.rw-agree span {
    flex: 1 1 auto;
}

.rw-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}
.rw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 520px;
}
.rw-table th,
.rw-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    vertical-align: middle;
}
.rw-table th {
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.rw-table tr:last-child td { border-bottom: none; }
.rw-status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.rw-status-pill.is-pending { background: #fef3c7; color: #92400e; }
.rw-status-pill.is-approved { background: #d1fae5; color: #065f46; }
.rw-status-pill.is-rejected { background: #fee2e2; color: #991b1b; }
.rw-status-pill.is-cancelled { background: #f1f5f9; color: #64748b; }

.rw-mobile-list { display: none; }
.rw-empty {
    text-align: center;
    padding: 28px 16px;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 720px) {
    .rw-form-grid { grid-template-columns: 1fr; }
    .rw-table-wrap { display: none; }
    .rw-mobile-list { display: block; }
    .rw-m-card {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 10px;
    }
    .rw-m-card__row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
        font-size: 13px;
    }
    .rw-m-card__label { color: #94a3b8; }
    .rw-m-card__value { color: #0f172a; text-align: right; word-break: break-word; }
    .rw-m-card__actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
    .rw-active-list__links { margin-left: 0; width: 100%; }
    .rw-active-list a { margin-left: 0; }
    .rw-user-page .btn { width: 100%; }
    .rw-form-actions .btn { flex: 1; }
    .rw-form-actions--agree .rw-agree { flex: 1 1 100%; }
}

.wall-page { background: #f1f5f9; min-height: 100vh; }
.wall-main { max-width: 1180px; margin: 0 auto; padding: 20px 20px 64px; }

.wall-dir-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.wall-dir-header__text { min-width: 0; flex: 1; }
.wall-dir-header h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.wall-dir-header__lead {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.wall-dir-header__notice {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
}
.wall-apply-btn { flex-shrink: 0; white-space: nowrap; }

.wall-dir {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.wall-sidebar {
    position: sticky;
    top: calc(var(--public-navbar-offset, 100px) + 8px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 10px;
}
.wall-sidebar__title {
    padding: 6px 10px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.wall-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wall-sidebar__item {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    transition: background .15s ease, color .15s ease;
}
.wall-sidebar__item:hover {
    background: #f8fafc;
    color: #0f172a;
}
.wall-sidebar__item.is-active {
    background: #0f172a;
    color: #fff;
    font-weight: 600;
}

.wall-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 16px 20px;
    min-width: 0;
}
.wall-content__head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.wall-content__head h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}
.wall-cat-desc {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.wall-empty {
    text-align: center;
    padding: 48px 16px;
    color: #64748b;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}
.wall-empty--inline {
    border: 1px dashed #e2e8f0;
    background: #f8fafc;
    padding: 36px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.wall-empty--inline p { margin: 0; }

.wall-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.wall-card {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.wall-card:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.wall-card__link {
    display: block;
    position: relative;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
}
.wall-card__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.wall-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #475569;
}
.wall-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wall-card__meta {
    flex: 1;
    min-width: 0;
}
.wall-card__name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    text-align: left;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}
.wall-card__intro {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 右侧滑出：品牌珊瑚，不撑高卡片 */
.wall-card__cta {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #e94560 0%, #ff6b9d 55%, #ff8c42 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -4px 0 12px rgba(233, 69, 96, 0.16);
    transform: translateX(100%);
    pointer-events: none;
    transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.wall-card:hover .wall-card__cta,
.wall-card:focus-within .wall-card__cta {
    transform: translateX(0);
    pointer-events: auto;
}
@media (hover: none), (pointer: coarse) {
    .wall-card__link { padding-right: 48px; }
    .wall-card__cta {
        transform: translateX(0);
        pointer-events: auto;
    }
}

.wall-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.wall-pagination a {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
}
.wall-pagination a.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* 未登录自荐提示 */
.wall-auth-modal[hidden] { display: none !important; }
.wall-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wall-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.wall-auth-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 22px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}
.wall-auth-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}
.wall-auth-modal__panel h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #0f172a;
}
.wall-auth-modal__panel p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}
.wall-auth-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.wall-auth-modal__hint {
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 860px) {
    .wall-dir {
        grid-template-columns: 1fr;
    }
    .wall-sidebar {
        position: static;
        padding: 10px;
    }
    .wall-sidebar__title { display: none; }
    .wall-sidebar__nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }
    .wall-sidebar__item {
        flex: 0 0 auto;
        white-space: nowrap;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        padding: 7px 14px;
        background: #fff;
    }
    .wall-sidebar__item.is-active {
        border-color: #0f172a;
    }
    .wall-dir-header {
        flex-direction: column;
        align-items: stretch;
    }
    .wall-apply-btn { align-self: flex-start; }
}

.go-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 24px;
}
.go-box {
    max-width: 440px;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}
.go-box h1 { margin: 0 0 12px; font-size: 1.4rem; color: #0f172a; }
.go-box p { color: #64748b; margin: 0 0 10px; line-height: 1.5; }
.go-host {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    word-break: break-all;
}
.go-name { font-size: 13px; }
.go-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
