/* 浼氬憳涓績鏍峰紡 - 绠€绾︽竻鐖介鏍?*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* 椤堕儴鏉?*/
.member-topbar {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.logo-icon { font-size: 24px; }

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover { color: #10b981; }

.nav-link.logout { color: #ef4444; }

/* 涓讳綋甯冨眬 */
.member-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 56px);
}

/* 渚ц竟鏍?*/
.member-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.sidebar-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info { flex: 1; }

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-group {
    font-size: 12px;
    opacity: 0.8;
}

.user-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item { text-align: center; flex: 1; }

.stat-val {
    font-size: 18px;
    font-weight: 700;
}

.stat-lbl {
    font-size: 11px;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
}

/* 瀵艰埅鑿滃崟 */
.sidebar-nav {
    padding: 12px 0;
}

.nav-section { margin-bottom: 8px; }

.nav-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-section-title:hover { color: #666; }

.nav-section.collapsed .nav-section-title { color: #ccc; }

.nav-section.collapsed .nav-item { display: none; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f5f7fa;
    color: #10b981;
}

.nav-item.active {
    background: #ecfdf5;
    color: #10b981;
    border-left-color: #10b981;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.nav-item.active i,
.nav-item:hover i { opacity: 1; }

/* 鍙充晶鍐呭鍖?*/
.member-main {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* 椤甸潰鏍囬 */
.page-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i { color: #10b981; }

/* 椤甸潰鍐呭 */
.page-content {
    padding: 28px;
}

/* 琛ㄥ崟鏍峰紡 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control:disabled {
    background: #f9fafb;
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #10b981;
    color: #fff;
}

.btn-primary:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #555;
}

.btn-outline:hover {
    border-color: #10b981;
    color: #10b981;
}

/* 琛ㄦ牸 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.table tr:hover td {
    background: #fafafa;
}

.table td a {
    color: #10b981;
    text-decoration: none;
}

.table td a:hover { text-decoration: underline; }

/* 绌虹姸鎬?*/
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 14px;
    margin-bottom: 4px;
}

/* 鐘舵€佹爣绛?*/
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-approved {
    background: #d1fae5;
    color: #059669;
}

.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* 鍒嗛〉 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.15s;
}

.pagination a:hover {
    border-color: #10b981;
    color: #10b981;
}

.pagination .current {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* 鍝嶅簲寮?*/
@media (max-width: 900px) {
    .member-wrapper {
        flex-direction: column;
    }

    .member-sidebar {
        width: 100%;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .nav-section {
        flex: 1;
        min-width: 120px;
        margin: 0;
    }

    .nav-section-title {
        padding: 6px 10px;
    }

    .nav-item {
        padding: 8px 10px;
    }
}

/* 会员中心左侧资料卡修正 */
.member-sidebar {
    width: 292px;
}

.member-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(88px, 1fr)) !important;
    gap: 10px !important;
}

.member-summary .item:first-child {
    display: none;
}

.member-summary .item {
    min-height: 122px;
    padding: 16px 10px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.member-summary .value {
    white-space: nowrap;
}

.member-summary .label {
    line-height: 1.4;
}

.member-link-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px !important;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

@media (max-width: 900px) {
    .member-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .member-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
