@import url('/themes/morandi-candy-future.css');

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

body.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #fefae8 0%, #eee8fa 30%, #def2fc 60%, #d6f8e0 100%);
    position: relative; overflow: hidden;
    font-family: "Microsoft YaHei", "微软雅黑", var(--font-family);
}
body.login-page::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(112,80,160,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112,80,160,0.06) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
}
body.login-page::after {
    content: ''; position: absolute; top: -150px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: #e0a0a8; filter: blur(100px); opacity: 0.4; pointer-events: none;
}

.app-layout {
    display: flex; height: 100vh; overflow: hidden;
}

.sidebar {
    width: 232px; min-width: 232px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column; height: 100vh; z-index: 20;
}
.sidebar-logo {
    padding: 20px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-logo .navbar-logo {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
}
.sidebar-logo .brand-name {
    font-size: 19px; font-weight: 700; letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    white-space: nowrap; line-height: 1.3;
}
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 20px; }
.nav-section-title {
    font-size: 10px; font-weight: 600; color: var(--text-light);
    letter-spacing: 2px; padding: 0 14px; margin-bottom: 10px; text-transform: uppercase;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    color: var(--text-secondary); cursor: pointer;
    transition: var(--transition); font-size: 13px; font-weight: 400;
    position: relative; letter-spacing: 0.2px; text-decoration: none;
}
.nav-item:hover { background: rgba(112,80,160,0.08); color: var(--text-primary); }
.nav-item.active { background: var(--accent-violet-dim); color: var(--accent-violet); font-weight: 600; }
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--accent-rose), var(--accent-violet));
}
.nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sidebar-footer { padding: 14px 12px; border-top: 1px solid var(--border-light); }
.user-info {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 10px; cursor: pointer; transition: var(--transition);
}
.user-logo-circle {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.user-logo-circle img {
    width: 24px; height: 24px; object-fit: cover;
}
.user-info:hover { background: rgba(112,80,160,0.08); }
.user-avatar {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.user-role { font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
    height: 65px; min-height: 65px; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card); backdrop-filter: blur(16px) saturate(1.2);
    position: sticky; top: 0; z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.2px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-info { display: flex; align-items: center; gap: 12px; margin-right: 8px; }
.topbar-date, .topbar-time { font-size: 13px; color: #555555; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px; }
.topbar-btn {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; cursor: pointer; transition: var(--transition);
    color: var(--text-secondary); position: relative; background: none; border: none; font-size: 14px;
}
.topbar-btn:hover { background: var(--accent-violet-dim); color: var(--accent-violet); }
.topbar-btn .dot {
    position: absolute; top: 7px; right: 7px; width: 5px; height: 5px;
    background: var(--accent-terra); border-radius: 50%;
}

.page-content { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg-primary); }

.container { max-width: 1200px; margin: 0 auto; }

.card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 22px; transition: var(--transition);
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06);
    margin-bottom: 20px;
}
.card:hover { box-shadow: var(--shadow-sm); }

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); margin-top: 0; font-weight: 600; }
.card h2 { font-size: 14px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.2px; margin-bottom: 18px; }

button, .btn {
    padding: 9px 18px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: var(--transition); border: none;
    display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.3px;
    text-decoration: none; text-align: center;
}
.btn-ghost { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.btn-accent, .btn-primary { background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet)); color: #fff; border: none; }
.btn-accent:hover, .btn-primary:hover { box-shadow: var(--shadow-glow-violet); transform: translateY(-1px); }
.btn-accent:active, .btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); }
.btn-secondary:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.btn-cancel { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); }
.btn-cancel:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.btn-sage { background: var(--accent-sage-dim); color: var(--accent-sage); border: 1px solid rgba(56,144,88,0.18); }
.btn-sm { padding: 5px 12px; font-size: 11px; border-radius: 8px; }
.btn-danger { background: var(--accent-terra-dim); color: var(--accent-terra); border: 1px solid rgba(176,56,40,0.18); }
.btn-danger:hover { background: var(--accent-terra); color: #fff; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.5px; }

input, select, textarea {
    width: 100%; padding: 13px 16px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 12px; color: var(--text-primary);
    font-size: 14px; font-family: inherit; transition: var(--transition); outline: none;
    backdrop-filter: blur(8px);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px var(--accent-violet-dim), var(--shadow-sm); background: var(--bg-card); }
input::placeholder, textarea::placeholder { color: var(--text-light); }

table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
th { text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border-light); background: var(--bg-input); letter-spacing: 0.5px; }
td { padding: 13px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light); }
tr:hover td { background: var(--accent-violet-bg); }

.error { color: var(--accent-terra); margin-bottom: 15px; padding: 12px; background: var(--accent-terra-bg); border-left: 3px solid var(--accent-terra); border-radius: var(--radius-sm); font-size: 13px; }
.success { color: var(--accent-sage); margin-bottom: 15px; padding: 12px; background: var(--accent-sage-bg); border-left: 3px solid var(--accent-sage); border-radius: var(--radius-sm); font-size: 13px; }

.login-container {
    position: relative; z-index: 10; width: 90%; max-width: 400px;
    padding: 36px 28px;
    background: rgba(252,251,247,0.96); backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(245,242,236,0.6); border-radius: 28px;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(112,80,160,0.10);
    text-align: center;
}
.title { text-align: center; margin-bottom: 36px; }
.title h1 {
    font-size: 26px; font-weight: 700; letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet), var(--accent-slate));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 0 0 10px 0;
}
.title h2 {
    margin: 0; font-size: 15px; color: var(--text-secondary);
    font-weight: 500; letter-spacing: 4px;
}
.login-container .form-group { text-align: left; margin-bottom: 20px; }
.login-container label { font-size: 14px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.5px; }
.login-container input { border-radius: 12px; padding: 13px 16px; }

.login-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    border: none; border-radius: 12px;
    color: #fff; font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: var(--transition); margin-top: 8px; letter-spacing: 2px;
    text-align: center; display: block; text-decoration: none;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-violet); }

.login-footer-section {
    text-align: center; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 1;
}
.login-footer-section img { width: 48px; height: 48px; opacity: 0.4; margin-bottom: 8px; }
.login-footer-section .copyright { font-size: 11px; color: var(--text-muted); }

.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; color: var(--text-primary); margin: 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 300; letter-spacing: 0.3px; }
.page-actions { display: flex; gap: 8px; }

.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.2px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border-light); background: var(--bg-input); letter-spacing: 0.5px; }
.data-table td { padding: 13px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--accent-violet-bg); }

.mono { font-family: 'Courier New', monospace; font-size: 12px; }

.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 22px;
    position: relative; overflow: hidden; transition: var(--transition);
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06); text-align: center;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-violet), var(--accent-violet-light)); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card h3 { margin: 0 0 10px 0; color: var(--accent-violet); font-size: 16px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }

.assessment-form { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
.assessment-form h2 { margin-bottom: 20px; color: var(--accent-violet); }
.question { margin-bottom: 20px; padding: 16px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--bg-input); }
.question p { margin: 0 0 10px 0; font-weight: 600; color: var(--text-primary); }
.answer-options { display: flex; flex-direction: column; gap: 10px; }
.answer-option { display: flex; align-items: center; gap: 10px; }
.answer-option input[type="radio"] { width: auto; }
.answer-option label { margin: 0; cursor: pointer; font-weight: 400; }
.submit-btn {
    width: 100%; padding: 14px; font-size: 14px; font-weight: 600;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border: none; border-radius: 12px; cursor: pointer;
    margin-top: 20px; font-family: inherit; letter-spacing: 2px; transition: var(--transition);
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-violet); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.pagination a { padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-secondary); font-size: 12px; }
.pagination a:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.pagination .active { background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet)); color: #fff; border-color: transparent; }

.detail-section { margin-bottom: 30px; }
.detail-section h2 { margin-bottom: 15px; color: var(--accent-violet); border-bottom: 1px solid var(--border-light); padding-bottom: 10px; }
.info-row { display: flex; margin-bottom: 8px; padding: 8px 0; }
.info-row .info-label { width: 150px; font-weight: 500; color: var(--text-secondary); font-size: 13px; }
.info-row .info-value { flex: 1; color: var(--text-primary); font-weight: 600; font-size: 13px; text-align: left; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.info-col { display: flex; flex-direction: column; }

.detail-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-light); display: flex; gap: 10px; justify-content: center; }

.record-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.record-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-xs); transition: var(--transition);
}
.record-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-violet), var(--accent-violet-light)); }
.record-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.record-card h4 { margin: 0 0 12px 0; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.record-info { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.record-score { font-size: 16px; font-weight: 700; color: var(--accent-violet); margin-bottom: 8px; }
.record-conclusion { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; display: inline-block; margin-bottom: 12px; }
.record-conclusion.normal, .record-conclusion.conclusion-normal { background: var(--accent-sage-dim); color: var(--accent-sage); }
.record-conclusion.abnormal, .record-conclusion.conclusion-abnormal { background: var(--accent-rose-dim); color: var(--accent-rose); }
.record-conclusion.conclusion-warning { background: var(--accent-sand-dim); color: var(--accent-sand); }
.card-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.card-actions-center { display: flex; justify-content: center; margin-top: 14px; }

.no-results { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.no-records { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; }
.highlight-count { color: var(--accent-violet); font-weight: 700; font-size: 18px; }
.no-data { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }

.user-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.user-management-table { width: 100%; border-collapse: collapse; }
.user-management-table .col-actions { width: 200px; }
.user-management-table .td-nowrap { white-space: nowrap; }
.user-management-table .td-nowrap .btn { margin-right: 4px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.search-form { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); margin-bottom: 20px; }
.search-form .form-row { display: flex; gap: 10px; margin-bottom: 15px; }
.search-form .form-group { flex: 1; margin-bottom: 0; }
.search-form .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.assessment-result { background: var(--bg-input); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.assessment-result h3 { margin: 0 0 10px 0; color: var(--accent-violet); font-size: 16px; }
.assessment-result p { margin: 0; color: var(--text-primary); }

.assessment-conclusion-card {
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 18px; margin-bottom: 20px;
    position: relative; overflow: hidden;
}
.assessment-conclusion-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-rose), var(--accent-violet)); }
.assessment-conclusion-card h3 { margin: 0 0 10px 0; font-size: 14px; font-weight: 600; color: var(--accent-violet); }
.assessment-conclusion-card p { margin: 4px 0; font-size: 13px; color: var(--text-primary); }

.about-admin-layout {
    display: flex; flex-direction: column; align-items: center;
    min-height: calc(100vh - 52px - 48px);
    text-align: center;
    padding-bottom: 80px;
}
.about-top {
    width: 100%; padding-top: 40px; text-align: center;
}
.about-top .system-name { font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; margin-bottom: 8px; margin-top: 20px; }
.about-top .system-name-en { font-size: 14px; color: #666666; letter-spacing: 2px; font-weight: 300; }
.about-middle {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%;
}
.about-middle .management-platform { font-size: 18px; color: #666666; font-weight: 500; }
.about-bottom {
    width: 100%; display: flex; flex-direction: column; align-items: center;
}
.about-bottom .logo-container { margin-top: 20px; }
.about-bottom .logo-container img { width: 160px; height: 160px; border-radius: 24px; opacity: 0.6; }
.about-bottom .version-info { position: fixed; bottom: 80px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; background: var(--bg-primary); }
.about-bottom .version-info p { margin: 4px 0; }
.about-bottom .copyright { position: fixed; bottom: 60px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--text-muted); background: var(--bg-primary); }

.grid-1-2 { display: grid; grid-template-columns: 375px 1fr; gap: 16px; height: calc(100vh - 52px - 48px); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }
.grid-right-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow-y: auto; }

.area-panel { overflow-y: auto; }
.area-panel .area-list { display: flex; flex-direction: column; gap: 2px; }
.area-item {
    padding: 10px 14px; border-radius: 8px; cursor: pointer;
    font-size: 13px; color: var(--text-secondary); transition: var(--transition);
}
.area-item:hover { background: var(--accent-violet-bg); color: var(--text-primary); }
.area-item.active {
    background: var(--accent-violet-dim); color: var(--accent-violet); font-weight: 600;
}
.elderly-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.elderly-list-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow-xs); transition: var(--transition);
}
.elderly-list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.elderly-bed-tag {
    display: inline-block; background: var(--accent-violet-bg); color: var(--accent-violet);
    font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 6px;
    letter-spacing: 0.3px; margin-bottom: 10px;
}
.elderly-info-col {
    min-width: 0;
}
.elderly-info-row {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; line-height: 1.7; color: var(--text-secondary);
}
.elderly-info-row .ei-label { flex-shrink: 0; color: var(--text-muted); font-size: 11px; }
.elderly-info-row .ei-value { font-weight: 500; color: var(--text-primary); font-size: 12px; }
.elderly-link {
    margin-top: 12px; text-align: center;
}

.query-row { display: flex; gap: 10px; align-items: flex-end; }
.query-row .form-group { flex: 1; margin-bottom: 0; }

.elderly-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: var(--transition); margin-bottom: 16px; }
.elderly-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(112,80,160,0.28); }
.elderly-card .card-header { padding: 14px 18px; border-bottom: 1px solid var(--border-light); background: var(--bg-input); }
.elderly-card .card-header .bed-info { font-size: 12px; font-weight: 600; color: var(--accent-violet); background: var(--accent-violet-dim); padding: 3px 10px; border-radius: 8px; }
.elderly-card .card-body { padding: 16px 18px; }
.elderly-card .card-footer { padding: 12px 18px; border-top: 1px solid var(--border-light); background: var(--bg-input); }

.display-section { margin-top: 20px; }
.display-group {
    display: flex; flex-direction: column;
    padding: 10px 0; border-bottom: 1px solid var(--border-light);
    line-height: 1.8; font-size: 13px;
}
.display-group:last-child { border-bottom: none; }
.display-label {
    font-weight: 600; color: var(--text-primary); margin-bottom: 4px;
    font-size: 13px; line-height: 1.7;
}
.display-value {
    color: var(--text-secondary); font-size: 13px; line-height: 1.7;
}
.display-radio-group {
    display: flex; gap: 12px; margin-top: 4px;
}
.display-radio-item {
    padding: 4px 14px; border: 1px solid var(--border-light);
    border-radius: 8px; font-size: 12px; color: var(--text-muted);
    transition: var(--transition); cursor: default;
}
.display-radio-item.selected {
    border-color: var(--accent-violet); color: var(--accent-violet);
    background: var(--accent-violet-bg); font-weight: 600;
}
.display-sub-item {
    padding: 6px 0; border-bottom: 1px dashed var(--border-light);
    font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.display-sub-item:last-child { border-bottom: none; }

.assessment-conclusion-card {
    background: var(--accent-violet-bg); border: 1px solid var(--accent-violet-dim);
    border-radius: var(--radius); padding: 18px; margin-bottom: 24px;
}
.assessment-conclusion-card h3 {
    font-size: 14px; color: var(--accent-violet); margin: 0 0 8px 0; font-weight: 600;
}
.assessment-conclusion-card p {
    font-size: 12px; color: var(--text-secondary); margin: 0 0 4px 0; line-height: 1.6;
}
.btn-back-center { display: flex; justify-content: center; margin-top: 24px; }

/* === 评估表内容显示样式 === */
.display-section { margin-top: 20px; }
.display-group {
    display: flex; flex-direction: column;
    padding: 10px 0; border-bottom: 1px solid var(--border-light);
    line-height: 1.8; font-size: 13px;
}
.display-group:last-child { border-bottom: none; }
.display-label {
    font-weight: 600; color: var(--text-primary); margin-bottom: 4px;
    font-size: 13px; line-height: 1.7;
}
.display-value {
    color: var(--text-secondary); font-size: 13px; line-height: 1.7;
}
.display-radio-group {
    display: flex; gap: 12px; margin-top: 4px;
}
.display-radio-item {
    padding: 4px 14px; border: 1px solid var(--border-light);
    border-radius: 8px; font-size: 12px; color: var(--text-muted);
    transition: var(--transition); cursor: default;
}
.display-radio-item.selected {
    border-color: var(--accent-violet); color: var(--accent-violet);
    background: var(--accent-violet-bg); font-weight: 600;
}

.scroll-top-btn {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border: none; cursor: pointer; font-size: 18px;
    box-shadow: var(--shadow-glow-violet); z-index: 999;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.scroll-top-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.tag { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }
.tag.rose { background: var(--accent-rose-dim); color: var(--accent-rose); }
.tag.violet { background: var(--accent-violet-dim); color: var(--accent-violet); }
.tag.sage { background: var(--accent-sage-dim); color: var(--accent-sage); }
.tag.slate { background: var(--accent-slate-dim); color: var(--accent-slate); }
.tag.sand { background: var(--accent-sand-dim); color: var(--accent-sand); }
.tag.terra { background: var(--accent-terra-dim); color: var(--accent-terra); }

.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 8px 16px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-size: 12px; font-weight: 500; transition: var(--transition); font-family: inherit; }
.tab-btn:hover { border-color: var(--accent-violet); color: var(--accent-violet); }
.tab-btn.active { background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet)); color: #fff; border-color: transparent; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.btn-back-center { display: flex; justify-content: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-light); }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .elderly-card-masonry { grid-template-columns: 1fr; }
    .page-content { padding: 12px; }
    .card { padding: 16px; }
    button, .btn { padding: 8px 14px; font-size: 12px; }
    th, td { padding: 8px 10px; font-size: 12px; }
}

/* 移动端关于页面样式（与about-admin保持一致） */
.about-mobile-layout {
    display: flex; flex-direction: column; align-items: center;
    min-height: calc(100vh - 52px);
    text-align: center;
}
.about-mobile-top {
    width: 100%; padding-top: 40px; text-align: center;
}
.about-mobile-top .system-name { font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; margin-bottom: 8px; margin-top: 20px; }
.about-mobile-top .system-name-en { font-size: 14px; color: #666666; letter-spacing: 2px; font-weight: 300; margin-bottom: 6px; }
.about-mobile-top .management-platform { font-size: 18px; color: #666666; font-weight: 500; }
.about-mobile-middle {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 20px 0;
}
.about-mobile-middle .logo-container img { width: 160px; height: 160px; border-radius: 24px; opacity: 0.6; }
.about-mobile-bottom {
    width: 100%; text-align: center; padding-bottom: 40px;
}
.about-mobile-bottom .version-info { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.about-mobile-bottom .version-info p { margin: 4px 0; }
.about-mobile-bottom .copyright { font-size: 12px; color: var(--text-muted); }

/* 移动端登录页面footer样式 */
.footer {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    font-size: 12px; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    z-index: 0; background: transparent; padding: 0; margin-top: 0; border-top: none;
}
.watermark { width: 60px; height: 60px; opacity: 0.3; }
