:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #f093fb;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --danger-color: #ff6b6b;
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    --warning-color: #ffd93d;
    --warning-gradient: linear-gradient(135deg, #ffd93d 0%, #f6c90e 100%);
    --info-color: #4facfe;
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-color: #00b894;
    --success-gradient: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px; 
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}
.header h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section { 
    margin-bottom: 40px; 
    border: 1px solid rgba(102, 126, 234, 0.1); 
    padding: 30px; 
    border-radius: var(--border-radius); 
    background-color: var(--card-bg);
    box-shadow: var(--shadow-md);
    overflow: visible;
    position: relative;
    transition: var(--transition);
}
.section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.section-title {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.form-group { 
    margin-bottom: 20px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}
input, select, textarea { 
    padding: 12px 16px; 
    margin: 0;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background-color: #f8f9fc;
    width: 100%;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
input::placeholder, textarea::placeholder {
    color: #a0aec0;
}
button { 
    padding: 12px 24px; 
    margin: 0;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
}
button {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}
button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
button:active {
    transform: translateY(0);
}
button.secondary {
    background: var(--success-gradient);
}
button.danger {
    background: var(--danger-gradient);
}
button.warning {
    background: var(--warning-gradient);
    color: var(--text-primary);
}
button.info {
    background: var(--info-gradient);
}
.hidden { display: none; }
.card {
    background: var(--card-bg);
    padding: 20px;
    margin: 12px 0;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.member-card {
    border-left: 4px solid var(--primary-color);
}
.record-card {
    border-left: 4px solid var(--secondary-color);
}
.reminder-card {
    border-left: 4px solid var(--warning-color);
}
.advice-card {
    border-left: 4px solid var(--info-color);
}
.emergency-card {
    border-left: 4px solid var(--danger-color);
}
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 8px;
}
.card-actions button {
    padding: 6px 12px;
    margin: 0;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}
.card-actions button:hover {
    transform: scale(1.05);
}
#cameraPreview {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border: 2px dashed #cbd5e0;
    margin: 15px 0;
    display: none;
    border-radius: var(--border-radius-sm);
    background-color: #f8f9fc;
    overflow: hidden;
}
#cameraPreview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#ocrResult {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    border-radius: var(--border-radius-sm);
    display: none;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--info-color);
}
#ocrResult h4 {
    color: var(--info-color);
    margin-bottom: 15px;
    font-size: 18px;
}
#ocrResult p {
    margin: 10px 0;
    line-height: 1.6;
}
.chart-container {
    position: relative;
    height: 350px;
    margin: 25px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.tab-container {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
}
.tab {
    padding: 12px 24px;
    cursor: pointer;
    background: white;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.tab:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}
.tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}
.tab.active:hover {
    color: white;
    background: var(--primary-gradient);
}
.tab-content {
    display: none;
    overflow: visible;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.3s ease-in-out;
}
.tab-content.active {
    display: block !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 100px !important;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.health-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}
.health-indicator span:first-child {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}
.indicator-bar {
    flex-grow: 1;
    height: 24px;
    background: linear-gradient(90deg, #f8f9fc 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 0 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.indicator-fill {
    height: 100%;
    background: var(--success-gradient);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
}
.health-indicator span:last-child {
    font-weight: 700;
    color: var(--success-color);
    min-width: 50px;
}
.notification-badge {
    background: var(--danger-gradient);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    background: white;
    box-shadow: var(--shadow-sm);
}
.reminder-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.reminder-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}
.reminder-item strong {
    color: var(--primary-color);
}
.reminder-actions {
    display: flex;
    gap: 10px;
}
.risk-high {
    color: var(--danger-color);
    font-weight: 700;
    background: rgba(255, 107, 107, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}
.risk-medium {
    color: var(--warning-color);
    font-weight: 700;
    background: rgba(255, 217, 61, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}
.risk-low {
    color: var(--success-color);
    font-weight: 700;
    background: rgba(0, 184, 148, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* 医疗资源样式 */
.resource-phone {
    color: var(--success-color);
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 184, 148, 0.1);
    border-radius: 20px;
    margin-left: 8px;
}

/* 紧急联系人样式 */
.emergency-service {
    margin-bottom: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--danger-color);
    box-shadow: var(--shadow-sm);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: var(--transition);
}
.emergency-service:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.emergency-service p {
    margin: 12px 0;
    display: block !important;
    visibility: visible !important;
    font-size: 16px;
}
.emergency-service strong {
    color: var(--text-primary);
}
.emergency-service button {
    margin-top: 15px;
    display: inline-flex !important;
    visibility: visible !important;
}

/* 确保紧急联系人内容可见 */
#emergencyTab {
    overflow: visible !important;
    height: auto !important;
    min-height: 300px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#emergencyTab * {
    visibility: visible !important;
    opacity: 1 !important;
}
.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.emergency-contact {
    position: relative;
    transition: var(--transition);
}
.emergency-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.emergency-call {
    position: absolute;
    right: 15px;
    top: 15px;
    background: var(--danger-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.emergency-call:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1200px) {
    body {
        padding: 15px;
    }
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .header h1 {
        justify-content: center;
    }
    .header > div {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .chart-container {
        height: 280px;
    }
    .tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    .emergency-contacts {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    input, select, button {
        width: 100%;
    }
    button {
        padding: 12px 20px;
    }
    .section {
        padding: 20px;
        margin-bottom: 25px;
    }
    .section-title {
        font-size: 20px;
    }
    .tab-container {
        gap: 6px;
    }
    .tab {
        padding: 10px 14px;
        font-size: 12px;
        flex: 1 0 calc(50% - 6px);
    }
    .reminder-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .reminder-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .reminder-actions button {
        flex: 1;
    }
    .emergency-contacts {
        grid-template-columns: 1fr;
    }
    .card-actions {
        flex-wrap: wrap;
    }
    .chart-container {
        height: 250px;
        padding: 15px;
    }
    .health-indicator {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .health-indicator span:first-child {
        min-width: auto;
    }
    .indicator-bar {
        margin: 0;
    }
    .health-indicator span:last-child {
        text-align: center;
    }
    .header {
        padding: 20px;
    }
    .header h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .header {
        padding: 15px;
        margin-bottom: 25px;
    }
    .header h1 {
        font-size: 18px;
    }
    .section {
        padding: 15px;
        margin-bottom: 20px;
    }
    .section-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    .tab {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1 0 calc(50% - 6px);
    }
    .tab-container {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    button {
        padding: 10px 16px;
        font-size: 13px;
    }
    .card-actions button {
        padding: 5px 10px;
        font-size: 11px;
    }
    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* 折叠卡片样式 */
.member-card,
.record-card {
    cursor: pointer;
    transition: var(--transition);
}

.member-card:hover,
.record-card:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

.member-summary {
    padding: 12px 120px 12px 16px;
    background-color: transparent;
    min-height: 40px;
}

.record-summary {
    padding: 12px 120px 12px 16px;
    background-color: transparent;
    min-height: 40px;
}

.member-summary h3,
.record-summary h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.4;
}

.expand-icon {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.member-card:not(.collapsed) .expand-icon,
.record-card:not(.collapsed) .expand-icon {
    transform: rotate(180deg);
}

.record-date-preview {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    font-weight: 400;
}

/* 详情内容包装器 */
.member-details-wrapper,
.record-details-wrapper {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    overflow: hidden;
}

.member-details-wrapper.collapsed,
.record-details-wrapper.collapsed {
    max-height: 0;
}

/* 实际内容容器 */
.member-details-content,
.record-details-content {
    padding: 15px 20px;
    border-top: 2px dashed #e2e8f0;
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.member-details-content p,
.record-details-content p {
    margin: 8px 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

.member-details-content strong,
.record-details-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 模态对话框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.modal-content h3 {
    margin-top: 0;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
}
.modal-content .form-group {
    margin-bottom: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式优化 */
.modal-content::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* 标题徽章样式 */
.header .notification-badge {
    width: 24px;
    height: 24px;
    font-size: 11px;
    animation: pulse 2s infinite;
}

/* 响应式优化 - 移动端模态框 */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        margin: 20px;
        width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
    }
    .modal-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* 打印样式优化 */
@media print {
    body {
        background: white;
    }
    .header button,
    .card-actions button,
    .tab-container,
    .form-group button {
        display: none !important;
    }
    .section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    .card {
        page-break-inside: avoid;
        box-shadow: none;
    }
}

/* 额外的视觉增强效果 */
button {
    position: relative;
    overflow: hidden;
}
button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
button:active::before {
    width: 300px;
    height: 300px;
}

/* 增强标题的视觉效果 */
.section-title {
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.section:hover .section-title::after {
    width: 100px;
}

/* 输入框聚焦动画增强 */
input:focus, select:focus, textarea:focus {
    animation: inputPulse 0.3s ease;
}
@keyframes inputPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

/* 卡片悬停时的光泽效果 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.card:hover::before {
    left: 100%;
}

/* 提醒徽章的脉冲效果增强 */
.notification-badge {
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }
}

/* 标签切换动画增强 */
.tab {
    position: relative;
    overflow: hidden;
}
.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.tab:hover::after {
    width: 80%;
}

/* 图表容器增强 */
.chart-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    position: relative;
    overflow: hidden;
}
.chart-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent 48%, rgba(102, 126, 234, 0.03) 50%, transparent 52%);
    pointer-events: none;
}

/* 紧急服务按钮增强 */
.emergency-service button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.emergency-service button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}
.emergency-service button:hover::before {
    width: 200%;
    height: 200%;
}

/* 健康指标条动画 */
.indicator-fill {
    position: relative;
    overflow: hidden;
}
.indicator-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    100% {
        left: 150%;
    }
}

/* 添加加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 改善移动端触摸体验 */
@media (max-width: 768px) {
    button {
        -webkit-tap-highlight-color: transparent;
    }
    button:active {
        transform: scale(0.98);
    }
}

/* 暗色模式支持（预留） */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加暗色模式样式 */
}
