/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #DCCCBB;
    --primary-dark: #DCCCBB;
    --primary-light: #DCCCBB;
    --secondary: #f4a261;
    --danger: #e63946;
    --warning: #e9c46a;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #000000;
    --text-light: #000000;
    --border: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
}

body {
    font-family: "SimSun", "宋体", serif;
    background: #ffffff;
    color: var(--text);
    line-height: 1.6;
}

.app {
    min-height: 100vh;
}

.public-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
}

.public-gate-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border);
}

.public-gate-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.public-gate-card h1 {
    color: #000000;
    font-size: 24px;
    margin-bottom: 8px;
}

.public-gate-desc {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 14px;
}

.public-gate-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.public-gate-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.public-gate-error {
    color: #000000;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.public-gate-admin-entry {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.public-gate-admin-entry button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.2s;
}

.public-gate-admin-entry button:hover {
    color: #000000;
}

.public-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.public-header {
    background: #ffffff;
    color: #000000;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);
}

.public-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-brand-icon {
    font-size: 28px;
}

.public-brand h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-admin-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary);
    color: #000000;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-admin-entry:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.public-body {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    width: 100%;
}

.public-intro {
    text-align: center;
    margin-bottom: 28px;
}

.public-intro h2 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 8px;
}

.public-intro p {
    color: var(--text-light);
    font-size: 15px;
}

.public-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 13px;
    border-top: 1px solid var(--border);
    background: white;
}

.admin-view {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: var(--primary-dark);
    color: #000000;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user-avatar {
    font-size: 28px;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: #000000;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-exit-admin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    color: #000000;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-exit-admin:hover {
    background: rgba(255,255,255,0.15);
    color: #000000;
}

.invite-modal-content {
    max-width: 420px;
}

.invite-form, .login-form-content {
    text-align: left;
    padding: 12px 0;
}

.invite-hint {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.invite-input-group {
    margin-bottom: 14px;
}

.invite-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.invite-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.invite-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.invite-error {
    color: #000000;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
    text-align: center;
}

.btn-invite-submit {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font-size: 16px;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.login-tab.active {
    color: #000000;
    border-bottom-color: var(--primary);
}

.logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo h2 {
    font-size: 18px;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    padding: 16px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #000000;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #000000;
}

.nav-item.active {
    background: var(--primary);
    color: #000000;
}

.nav-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 15px;
}

.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 32px;
    max-width: calc(100% - 220px);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-light);
    font-size: 14px;
}

.member-form {
    max-width: 900px;
}

.form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.required {
    color: #000000;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}

.checkbox-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.intro-input-wrap {
    display: flex;
    gap: 8px;
}

.intro-input-wrap input {
    flex: 1;
}

.btn-auto-intro {
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    color: var(--text);
}

.btn-auto-intro:hover {
    background: var(--primary);
    color: #000000;
    border-color: var(--primary);
}

.photo-upload-area {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.photo-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .photo-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    color: #000000;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview-item .photo-remove-btn:hover {
    background: rgba(220,53,69,0.9);
}

.photo-placeholder {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg);
    color: var(--text-light);
}

.photo-placeholder:hover {
    border-color: var(--primary);
}

.photo-placeholder span {
    font-size: 28px;
    display: block;
}

.photo-placeholder p {
    font-size: 11px;
    margin-top: 4px;
}

.detail-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.detail-photo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-photo-img:hover {
    transform: scale(1.05);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 40px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #000000;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
}

.btn-danger {
    background: var(--danger);
    color: #000000;
}

.btn-danger:hover {
    background: #c1121f;
}

.btn-warning {
    background: var(--warning);
    color: #000000;
}

.btn-warning:hover {
    background: #d4a017;
}

.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.member-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.member-gender {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text-light);
}

.member-gender.male {
    background: #F5EDE6;
    color: #000000;
}

.member-gender.female {
    background: #fbe9e7;
    color: #000000;
}

.member-info {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

.member-intro {
    font-size: 13px;
    color: #000000;
    font-style: italic;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    line-height: 1.5;
}

.member-info p {
    display: flex;
    justify-content: space-between;
}

.member-info span {
    color: var(--text);
}

.member-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.search-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.search-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-filters input,
.search-filters select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    min-width: 160px;
}

.search-filters input:focus,
.search-filters select:focus {
    outline: none;
    border-color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.stats-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-section {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #000000;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-bar-label {
    width: 80px;
    font-size: 13px;
    color: var(--text);
    text-align: right;
    flex-shrink: 0;
}

.stat-bar-track {
    flex: 1;
    height: 20px;
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--primary-light);
    border-radius: 10px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 0;
    overflow: hidden;
}

.stat-bar-value {
    font-size: 11px;
    color: #000000;
    font-weight: 500;
    white-space: nowrap;
}

.stat-bar-outside {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 18px;
    color: #000000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 12px;
    color: var(--text-light);
}

.detail-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.detail-section-title {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.print-area {
    display: none;
}

@media print {
    @page {
        margin: 15mm;
    }

    body * {
        visibility: hidden;
    }

    .print-area {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        visibility: visible;
    }
    .print-area * {
        visibility: visible;
    }
    .print-area .print-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

.print-content {
    max-width: 600px;
    margin: 0 auto;
    font-family: "SimSun", "宋体", serif;
    color: #000;
}

.print-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 4px;
}

.print-section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 12px;
    letter-spacing: 2px;
}

.print-line {
    display: flex;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.8;
}

.print-label {
    width: 80px;
    text-align: justify;
    text-align-last: justify;
    flex-shrink: 0;
}

.print-value {
    flex: 1;
    border-bottom: 1px solid #000;
    padding-left: 8px;
    min-height: 24px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

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

.empty-state-text {
    font-size: 15px;
}

.data-management {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.data-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.data-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.data-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.data-card h3 {
    font-size: 17px;
    color: #000000;
    margin-bottom: 8px;
}

.data-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.data-card button {
    width: 100%;
}

.data-card-danger {
    border: 2px solid var(--danger);
    background: #ffffff;
}

.data-card-danger h3 {
    color: var(--danger);
}

.data-info {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.data-info h3 {
    font-size: 16px;
    color: #000000;
    margin-bottom: 12px;
}

.data-info ul {
    padding-left: 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 2;
}

.invite-code-create {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.invite-code-create input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.invite-code-create input:focus {
    outline: none;
    border-color: var(--primary);
}

.invite-code-list {
    max-height: 400px;
    overflow-y: auto;
}

.invite-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: opacity 0.3s, background 0.3s;
}

.invite-code-item.disabled {
    opacity: 0.5;
    background: #f5f5f5;
    border-style: dashed;
}

.invite-code-item.disabled .code {
    text-decoration: line-through;
    color: #000000;
}

.invite-code-item .code {
    font-weight: 600;
    letter-spacing: 2px;
    color: #000000;
}

.invite-code-item .status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

.invite-code-item .status.active {
    background: #F5EDE6;
    color: #000000;
}

.invite-code-item .status.used {
    background: #fff3e0;
    color: #000000;
}

.invite-code-item .status.inactive {
    background: #ffebee;
    color: #000000;
    font-weight: 600;
}

.invite-code-actions {
    display: flex;
    gap: 6px;
}

.invite-code-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.invite-code-btn:hover {
    opacity: 0.85;
}

.invite-code-btn.btn-deactivate {
    background: var(--warning);
    color: #000000;
}

.invite-code-btn.btn-delete {
    background: var(--danger);
    color: #000000;
}

.user-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.user-section h3 {
    font-size: 15px;
    color: #000000;
    margin-bottom: 12px;
}

.user-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
}

.user-list-item .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-list-item .user-role {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-light);
}

.user-list-item .user-role.admin {
    background: #F5EDE6;
    color: #000000;
}

.public-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.public-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.public-card-top {
    padding: 20px;
    text-align: center;
    background: #ffffff;
}

.public-card-avatar {
    font-size: 48px;
    margin-bottom: 8px;
}

.public-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.public-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.public-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(45,106,79,0.08);
    color: #000000;
}

.public-card-intro {
    padding: 12px 20px;
    font-size: 13px;
    color: #000000;
    font-style: italic;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.public-card-body {
    padding: 16px 20px;
}

.public-card-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-light);
}

.public-card-row span:last-child {
    color: var(--text);
    font-weight: 500;
}

.public-card-footer {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: #000000;
    border-top: 1px solid var(--border);
}

.public-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.public-filters select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 120px;
}

.public-filters select:focus {
    outline: none;
    border-color: var(--primary);
}

.public-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.public-modal-content {
    max-width: 600px;
}

.public-detail-section {
    margin-bottom: 20px;
}

.public-detail-title {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.public-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.public-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.public-detail-item.full {
    grid-column: 1 / -1;
}

.public-detail-item .label {
    font-size: 12px;
    color: var(--text-light);
}

.public-detail-item .value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.public-contact-tip {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius);
    margin-top: 16px;
    border: 1px solid var(--border);
}

.public-contact-tip p {
    font-size: 15px;
    color: #000000;
    font-weight: 500;
    margin-bottom: 4px;
}

.public-contact-tip small {
    color: var(--text-light);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 6px;
    color: #000000;
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
    box-shadow: var(--shadow-hover);
}

.toast.success {
    background: var(--primary);
}

.toast.error {
    background: var(--danger);
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-details {
        grid-template-columns: 1fr;
    }
    .data-management {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    .sidebar-user, .nav-text {
        display: none;
    }
    .main-content {
        margin-left: 60px;
        max-width: calc(100% - 60px);
        padding: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .member-list {
        grid-template-columns: 1fr;
    }
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .search-filters input,
    .search-filters select {
        width: 100%;
    }
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .public-header-inner {
        padding: 12px 16px;
    }
    .public-body {
        padding: 16px;
    }
    .public-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-view {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        z-index: 200;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .logo, .sidebar-user, .sidebar-footer {
        display: none;
    }
    .nav-menu {
        display: flex;
        justify-content: space-around;
        padding: 0;
        overflow-x: auto;
    }
    .nav-item {
        flex-direction: column;
        padding: 8px 4px;
        min-width: 0;
        text-align: center;
    }
    .nav-icon {
        margin-right: 0;
        margin-bottom: 2px;
        font-size: 18px;
    }
    .nav-text {
        display: block;
        font-size: 11px;
    }
    .main-content {
        margin-left: 0;
        margin-bottom: 70px;
        max-width: 100%;
        padding: 16px 12px;
    }
    .page-header h1 {
        font-size: 20px;
    }
    .form-section {
        padding: 16px 12px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 10px;
        font-size: 16px;
    }
    .checkbox-group {
        gap: 8px;
    }
    .checkbox-item {
        font-size: 13px;
    }
    .form-actions {
        flex-direction: column;
    }
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    .member-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .member-card {
        padding: 14px;
    }
    .member-card-header {
        margin-bottom: 8px;
    }
    .member-name {
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .data-management {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 16px;
    }
    .stat-value {
        font-size: 22px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        max-height: 95vh;
    }
    .modal-body {
        padding: 16px;
    }
    .toast {
        left: 16px;
        right: 16px;
        text-align: center;
    }
}
