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

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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; }

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;
}

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 15px;
    text-align: center;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(16px) saturate(1.2);
}

.header h1 {
    margin: 0; font-size: 18px; flex: 1;
    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;
}

.header-icon {
    position: absolute; right: 15px;
    width: 32px; height: 32px; border-radius: 10px; overflow: hidden;
}
.header-icon img { width: 100%; height: 100%; object-fit: cover; }

.menu-btn {
    position: absolute; left: 15px;
    font-size: 20px; cursor: pointer; z-index: 101;
    color: var(--text-secondary);
}

.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26,20,16,0.22); backdrop-filter: blur(6px);
    z-index: 99; display: none;
}

.menu {
    position: fixed; top: 0; left: -250px;
    width: 250px; height: 100%;
    background: var(--bg-card); z-index: 100;
    transition: left 0.3s ease; padding-top: 60px;
    box-shadow: 2px 0 10px rgba(46,40,34,0.08);
}
.menu.open { left: 0; }

.menu-item {
    display: block; padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none; color: var(--text-secondary);
    font-size: 13px; font-weight: 400; transition: var(--transition);
    letter-spacing: 0.2px;
}
.menu-item:hover { background: var(--accent-violet-bg); color: var(--accent-violet); }

.stats-bar {
    background: var(--bg-card);
    padding: 12px 15px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky; top: 52px; z-index: 10;
    box-shadow: var(--shadow-xs);
}

.stats-text { font-size: 14px; color: var(--text-secondary); }
.stats-text span { color: var(--accent-violet); font-weight: 700; font-size: 16px; }

.query-btn {
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border: none;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.query-btn:hover { box-shadow: var(--shadow-glow-violet); transform: translateY(-1px); }

.container { padding: 15px; }

.elderly-card {
    display: block;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; margin-bottom: 15px;
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06);
    transition: var(--transition); text-decoration: none; color: var(--text-primary);
}
.elderly-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(112,80,160,0.28); }
.elderly-card h3 { margin: 0 0 10px 0; color: var(--accent-violet); font-size: 16px; font-weight: 600; }

.elderly-info { font-size: 14px; color: var(--text-secondary); margin-bottom: 5px; }
.elderly-info span { font-weight: 600; color: var(--text-primary); }

.no-records { text-align: center; padding: 40px 20px; color: var(--text-muted); }

.add-btn {
    position: fixed; bottom: 20px; right: 20px;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; font-size: 24px;
    box-shadow: var(--shadow-glow-violet); z-index: 99;
    transition: var(--transition);
}
.add-btn:hover { transform: scale(1.05); }

.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;
}

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

button {
    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); letter-spacing: 2px;
}
button:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-violet); }
button:active { transform: translateY(0); }

.footer {
    position: fixed; bottom: 20px; left: 0; right: 0;
    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; }

.form-container {
    background: var(--bg-card); border: 1px solid var(--border-light);
    padding: 20px; border-radius: var(--radius);
    box-shadow: var(--shadow-xs); margin-bottom: 20px;
    backdrop-filter: blur(12px) saturate(1.06);
}
.form-container h2 { margin-top: 0; color: var(--accent-violet); font-size: 16px; font-weight: 600; margin-bottom: 20px; }

.form-row { display: flex; gap: 10px; margin-bottom: 15px; }
.form-row .form-group { flex: 1; margin-bottom: 0; }

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;
}
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); }

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

.assessment-container {
    background: var(--bg-card); border: 1px solid var(--border-light);
    padding: 20px; border-radius: var(--radius);
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06);
}
.assessment-container h2 { margin-top: 0; color: var(--accent-violet); font-size: 16px; font-weight: 600; margin-bottom: 20px; }

.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-size: 14px; color: var(--text-primary); font-weight: 600; }

.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;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-violet); }

.detail-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; margin-bottom: 15px;
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06);
}
.detail-card h3 {
    margin: 0 0 15px 0; color: var(--accent-violet); font-size: 16px; font-weight: 600;
    border-bottom: 1px solid var(--border-light); padding-bottom: 10px;
}

.detail-item { display: flex; margin-bottom: 10px; font-size: 13px; }
.detail-item .label { width: 100px; color: var(--text-secondary); font-size: 12px; }
.detail-item .value { flex: 1; color: var(--text-primary); font-weight: 600; }

.assessment-btn {
    display: block; width: 100%; padding: 12px; margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; text-align: center; text-decoration: none;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
    transition: var(--transition);
}
.assessment-btn:hover { box-shadow: var(--shadow-glow-violet); transform: translateY(-1px); }

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

.back-btn { color: var(--text-primary); text-decoration: none; font-size: 20px; margin-right: 15px; position: absolute; left: 15px; z-index: 101; }

.radio-group { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 5px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; flex: 1 1 45%; }

.form-actions { margin-top: 30px; display: flex; gap: 15px; }

.btn {
    flex: 1; padding: 12px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; cursor: pointer; text-align: center;
    text-decoration: none; display: inline-block; font-family: inherit;
    transition: var(--transition);
}

.btn-primary { background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet)); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-glow-violet); transform: translateY(-1px); }
.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); }

input[type="text"], input[type="date"], select, textarea {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--border-light); border-radius: 12px;
    font-size: 14px; box-sizing: border-box;
    background: var(--bg-card); color: var(--text-primary);
    font-family: inherit; transition: var(--transition); outline: none;
}
input[type="radio"] { width: auto; margin: 0; }
input[type="checkbox"] { width: auto; margin: 0; }

input[type="date"] { position: relative; }
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer;
}

.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); }

.elderly-card-block {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06);
    transition: var(--transition); position: relative; overflow: hidden;
}
.elderly-card-block::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-violet), var(--accent-violet-light)); }
.elderly-card-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(112,80,160,0.28); }
.elderly-card-block h3 { margin: 0 0 12px 0; color: var(--accent-violet); font-size: 16px; font-weight: 600; }

.card-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
    font-size: 13px; color: var(--text-secondary);
}
.card-grid .info-label { font-size: 11px; color: var(--text-muted); }

.card-actions { display: flex; gap: 8px; margin-top: 12px; }

.btn-detail {
    display: inline-block; padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
    text-decoration: none; transition: var(--transition);
}
.btn-detail:hover { box-shadow: var(--shadow-glow-violet); transform: translateY(-1px); }

.info-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06);
    position: relative; overflow: hidden;
}
.info-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-rose), var(--accent-violet)); }
.info-card h2 { margin: 0 0 16px 0; font-size: 15px; font-weight: 600; color: var(--text-primary); }

.info-item {
    display: flex; gap: 8px; align-items: center;
    padding: 10px 14px; background: transparent; border-radius: 10px;
    margin-bottom: 8px; transition: var(--transition-fast);
}
.info-item:hover { background: var(--bg-input); }
.info-item .info-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; flex-shrink: 0; width: 70px; }
.info-item .info-value { font-size: 13px; font-weight: 600; color: var(--text-primary); text-align: left; flex: 1; }

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

.record-cards { display: flex; flex-direction: column; gap: 12px; }

.record-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-xs); backdrop-filter: blur(12px) saturate(1.06);
    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 10px 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: 18px; 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: 10px; }
.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); }

.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; }

.elderly-cards { display: flex; flex-direction: column; gap: 12px; }

.elderly-card .btn {
    display: inline-block; width: auto; flex: none;
    padding: 6px 14px; font-size: 12px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border-radius: var(--radius-sm);
    margin-top: 10px;
}
.elderly-card .btn:hover { box-shadow: var(--shadow-glow-violet); transform: translateY(-1px); }

.elderly-card .elderly-info p {
    margin: 0 0 6px 0; font-size: 13px; color: var(--text-secondary);
}
.elderly-card .elderly-info p strong {
    color: var(--text-primary); font-weight: 600;
}

.page-content { padding-bottom: 76px; }

.card-actions-right { justify-content: flex-end; }

.input-with-btn {
    display: flex; gap: 8px; align-items: center;
}
.input-with-btn input { flex: 1; }
.input-with-btn .btn-search { flex: none; white-space: nowrap; }

.questionnaire-section { margin-bottom: 24px; }
.questionnaire-section > h2 {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}

.accordion-item {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; cursor: pointer; transition: var(--transition);
    background: var(--bg-input);
}
.accordion-header:hover { background: var(--accent-violet-bg); }
.accordion-title {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    letter-spacing: 0.2px;
}
.accordion-arrow {
    font-size: 10px; color: var(--accent-violet); transition: transform var(--transition);
}
.accordion-item.open .accordion-arrow { transform: rotate(90deg); }
.accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    padding: 0 16px;
}
.accordion-item.open .accordion-body { padding: 12px 16px; }

.action-menu {
    position: fixed; bottom: -100%; left: 0; right: 0;
    background: var(--bg-card); z-index: 200;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-xl); transition: bottom 0.3s ease;
    padding: 0 0 24px 0; max-height: 70vh; overflow-y: auto;
}
.action-menu.open { bottom: 0; }

.action-menu-header {
    padding: 18px 20px 14px; font-size: 14px; font-weight: 600;
    color: var(--text-primary); text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.action-menu-header::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: var(--border-color); border-radius: 2px;
    margin: 0 auto 12px;
}

.action-menu-item {
    padding: 14px 20px; font-size: 14px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light); cursor: pointer;
    transition: var(--transition); letter-spacing: 0.2px;
}
.action-menu-item:hover { background: var(--accent-violet-bg); color: var(--accent-violet); }
.action-menu-item:active { background: var(--accent-violet-dim); }

.action-menu-cancel {
    padding: 16px 20px; font-size: 14px; font-weight: 600;
    color: var(--accent-terra); text-align: center; cursor: pointer;
    transition: var(--transition); margin-top: 4px;
}
.action-menu-cancel:hover { background: var(--accent-terra-bg); }

.menu-overlay.open { display: block; }

.search-bar {
    display: flex; gap: 8px; padding: 12px 15px;
    background: var(--bg-card); border-bottom: 1px solid var(--border-light);
}
.search-bar input {
    flex: 3; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
    outline: none; transition: var(--transition); min-width: 0;
}
.search-bar input:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px var(--accent-violet-dim); }

.btn-search {
    flex: 1; padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 500; cursor: pointer;
    font-family: inherit; transition: var(--transition);
    white-space: nowrap; flex-shrink: 0;
}
.btn-search:hover { box-shadow: var(--shadow-glow-violet); transform: translateY(-1px); }

.area-filter {
    padding: 12px 15px; background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}
.area-title {
    font-size: 13px; font-weight: 600; color: var(--accent-violet);
    margin-bottom: 8px; letter-spacing: 0.5px;
}
.area-filter select {
    width: 100%; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
    color: var(--text-primary); outline: none; transition: var(--transition);
}
.area-filter select:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px var(--accent-violet-dim); }

.care-area-select {
    padding: 12px 15px; background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}
.care-area-select label {
    font-size: 13px; font-weight: 600; color: var(--accent-violet);
    margin-bottom: 8px; letter-spacing: 0.5px; display: block;
}
.care-area-select select {
    width: 100%; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
    color: var(--text-primary); outline: none; transition: var(--transition);
}
.care-area-select select:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px var(--accent-violet-dim); }

.search-container {
    display: flex; gap: 8px; padding: 12px 15px;
    background: var(--bg-card); border-bottom: 1px solid var(--border-light);
}
.search-input {
    flex: 1; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
    outline: none; transition: var(--transition);
}
.search-input:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px var(--accent-violet-dim); }

.remote-elderly-container { padding: 0; }

.footer-links {
    display: flex; gap: 20px; justify-content: center;
}
.footer-links a {
    color: var(--text-muted); text-decoration: none; font-size: 12px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-violet); }

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

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: var(--bg-card); border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-around; align-items: center;
    padding: 4px 0; z-index: 1000;
    box-shadow: 0 -2px 10px rgba(46,40,34,0.06);
    backdrop-filter: blur(16px) saturate(1.2);
}

.bottom-nav-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 8px 16px; color: var(--text-muted); text-decoration: none;
    font-size: 11px; font-weight: 500; transition: var(--transition); gap: 2px;
}
.bottom-nav-link svg { width: 22px; height: 22px; }
.bottom-nav-link.active { color: var(--accent-violet); }
.bottom-nav-link:hover { color: var(--text-secondary); }

@media (max-width: 480px) {
    .login-container { padding: 30px 20px; }
    .title h1 { font-size: 22px; }
    .title h2 { font-size: 13px; }
    .watermark { width: 50px; height: 50px; }
    .form-row { flex-direction: column; }
    .header h1 { font-size: 16px; }
    .stats-text { font-size: 12px; }
    .stats-text span { font-size: 14px; }
    .query-btn { padding: 6px 12px; font-size: 11px; }
    .container { padding: 10px; }
    .elderly-card { padding: 12px; margin-bottom: 12px; }
    .elderly-card h3 { font-size: 15px; }
    .elderly-info { font-size: 12px; }
    .detail-card { padding: 12px; margin-bottom: 12px; }
    .detail-card h3 { font-size: 14px; }
    .detail-item { font-size: 12px; }
    .detail-item .label { width: 80px; }
    .assessment-btn { padding: 10px; font-size: 12px; }
    .card { padding: 15px; }
    .checkbox-item { flex: 1 1 48%; }
    .form-actions { margin-top: 20px; }
    .btn { padding: 10px; font-size: 13px; }
}

.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; }
.about-mobile-top .about-middle { position: absolute; top: 180px; left: 0; right: 0; text-align: center; }
.about-mobile-top .about-middle .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;
    margin-top: 20px;
}
.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); }

.header-spacer { width: 32px; }

.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(26,20,16,0.22); backdrop-filter: blur(6px);
    z-index: 200; align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-card); border-radius: var(--radius-xl);
    padding: 28px 24px; width: 90%; max-width: 340px;
    box-shadow: var(--shadow-xl); text-align: center;
}
.modal-content p { font-size: 14px; color: var(--text-primary); margin-bottom: 20px; line-height: 1.6; }
.modal-content button {
    width: auto; padding: 10px 32px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet));
    color: #fff; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}

.assessment-conclusion-card {
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; 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); }

.score-checkboxes {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
.score-checkboxes label {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: 8px; font-size: 12px; cursor: pointer; transition: var(--transition);
}
.score-checkboxes label:hover { border-color: var(--accent-violet); }
.score-checkboxes input[type="checkbox"] { width: auto; margin: 0; }

.calculator-container {
    display: flex; align-items: center; gap: 8px; margin-top: 10px;
    flex-wrap: wrap; font-size: 13px;
}
.calc-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.calc-result { font-weight: 700; color: var(--accent-violet); min-width: 30px; }
.calc-btn {
    padding: 6px 14px !important; width: auto !important;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-violet)) !important;
    color: #fff !important; border: none !important; border-radius: var(--radius-sm) !important;
    font-size: 12px !important; font-weight: 500 !important; cursor: pointer !important;
    font-family: inherit !important; white-space: nowrap !important;
}
.calculator-container input[type="number"] {
    width: 70px; padding: 6px 8px; font-size: 13px; text-align: center;
}

.drawing-container { margin-top: 12px; }
.reference-image { text-align: center; margin-bottom: 12px; }
.reference-image .image-container { display: inline-block; }
.reference-image img { max-width: 200px; max-height: 150px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.drawing-area { margin-top: 8px; }
.drawing-area canvas { width: 100%; height: 200px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #fff; touch-action: none; }
.canvas-controls { margin-top: 8px; display: flex; gap: 8px; }

.question-option {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 13px;
}
.question-option:hover { border-color: var(--accent-violet); }
.question-option input[type="radio"] { width: auto; margin: 0; }

.hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.previous-data {
    background: var(--bg-input); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
}
.previous-data h3 { margin: 0 0 8px 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.previous-data p { margin: 4px 0; font-size: 14px; color: var(--text-primary); font-weight: 600; }

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

.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; }

/* 管理端登录页面样式（与login-page保持一致） */
.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); }
.copyright { font-size: 11px; color: var(--text-muted); }
.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); }

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