/* 保留基础美化和通用样式，去除适老化相关部分 */
* {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}
body {
    font-size: 16px;
    line-height: 1.6;
}

/* 标题字号恢复默认 */
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
p { font-size: 1rem; }

/* 按钮恢复默认热区 */
button {
    min-height: auto;
    min-width: auto;
    padding: 0.5rem 1rem;
}

/* 颜色和阴影通用 */
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.bg-white { background: #fff; }
.shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* 其他保留的样式可根据页面需要补充 */

/* 高对比度色彩 */
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }

/* 按钮热区扩大 */
button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
}

/* 脉冲动画效果 */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* 进度圆环动画 */
.progress-circle {
    transition: stroke-dashoffset 1s ease-in-out;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from { stroke-dashoffset: 251.2; }
    to { stroke-dashoffset: 80.4; }
}

/* 录音动画 */
.recording-animation {
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    0% {
        transform: scale(1);
        background: #f97316;
    }
    50% {
        transform: scale(1.1);
        background: #ea580c;
    }
    100% {
        transform: scale(1);
        background: #f97316;
    }
}

/* 退出按钮样式 */
.exit-recording-btn {
    transition: all 0.3s ease;
}

.exit-recording-btn:hover {
    transform: scale(1.1);
    background-color: #ef4444 !important;
}

.exit-recording-btn:hover i {
    color: white !important;
}

/* 录音控制按钮样式 */
.stop-recording-btn,
.pause-recording-btn {
    min-height: 48px;
    min-width: 120px;
}

.stop-recording-btn:hover,
.pause-recording-btn:hover {
    transform: scale(1.05);
}

/* 录音时长显示 */
#recordingTimer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #6b7280;
}

/* 语音记录按钮悬停效果 */
.voice-record-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
}

.voice-record-btn:active {
    transform: scale(0.95);
}

/* 导航项激活状态 */
.nav-item.active i {
    color: #f97316;
}

.nav-item.active span {
    color: #f97316;
    font-weight: 600;
}

/* 家庭消息悬停效果 */
.family-message {
    transition: all 0.3s ease;
    cursor: pointer;
}

.family-message:hover {
    background-color: #fed7aa;
    transform: translateX(4px);
}

/* 播放按钮动画 */
.play-btn {
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: #16a34a;
}

/* SOS按钮紧急效果 */
.sos-btn {
    animation: sosBlink 3s infinite;
    transition: all 0.3s ease;
}

.sos-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@keyframes sosBlink {
    0%, 50% { background-color: #ef4444; }
    25%, 75% { background-color: #dc2626; }
}

/* SOS标签样式 */
.sos-label {
    transition: all 0.3s ease;
}

.sos-btn:hover + .sos-label {
    color: #dc2626;
    font-weight: 600;
}

/* 覆盖层动画 */
.recording-overlay, .sos-dialog {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 无障碍设计 - 焦点样式 */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #f97316;
    outline-offset: 2px;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .bg-orange-50 { background-color: #fff7ed; }
    .bg-orange-100 { background-color: #ffedd5; }
    .text-gray-600 { color: #374151; }
    .text-gray-500 { color: #4b5563; }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 响应式设计 */
@media (max-width: 640px) {
    .status-bar {
        padding: 1rem;
    }
    
    .memory-progress,
    .guide-card,
    .family-dynamics {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .voice-record-btn {
        width: 5rem;
        height: 5rem;
    }
    
    .voice-record-btn i {
        font-size: 1.5rem;
    }
}

/* 大屏幕优化 */
@media (min-width: 768px) {
    .voice-record-container {
        bottom: 2rem;
    }
    
    .bottom-nav {
        padding: 1.5rem 2rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .voice-record-btn {
        min-height: 88px;
        min-width: 88px;
    }
    
    .sos-btn {
        min-height: 88px;
        min-width: 88px;
    }
    
    .guide-mic-btn {
        min-height: 88px;
        min-width: 88px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    }
    
    .bg-white {
        background-color: #374151;
    }
    
    .text-gray-800 {
        color: #f9fafb;
    }
    
    .text-gray-600 {
        color: #d1d5db;
    }
    
    .text-gray-500 {
        color: #9ca3af;
    }
}

/* 字体缩放支持 */
@media (min-resolution: 2dppx) {
    body {
        font-size: 18px;
    }
}

/* 打印样式 */
@media print {
    .voice-record-container,
    .bottom-nav,
    .recording-overlay,
    .sos-dialog {
        display: none !important;
    }
}

/* 底部导航栏凸起按钮样式 */
.bottom-nav {
    box-shadow: 0 -2px 16px rgba(0,0,0,0.04);
    z-index: 40;
}

.bottom-nav .voice-record-btn {
    margin-top: -32px;
    z-index: 50;
}

@media (max-width: 640px) {
    .bottom-nav .voice-record-btn {
        width: 4.5rem;
        height: 4.5rem;
        margin-top: -24px;
    }
    .bottom-nav span.text-xs {
        font-size: 0.9rem;
    }
}

.bottom-nav .nav-item {
    min-width: 0;
    flex: 1 1 0%;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bottom-nav .nav-item i {
    margin-bottom: 2px;
}

.bottom-nav .notification-dot {
    position: absolute;
    right: 0.5rem;
    top: 0.2rem;
}

/* 故事编辑弹窗样式优化 */
#storyEditModal button, #storyEditModal label {
    min-width: 80px;
    min-height: 40px;
    font-size: 1.1rem;
}
#storyEditModal span.inline-block {
    cursor: pointer;
    transition: all 0.2s;
}
#storyEditModal span.inline-block.bg-orange-400 {
    box-shadow: 0 2px 8px rgba(251,146,60,0.15);
}
#storyImagePreview img {
    border: 2px solid #f59e0b;
}
/* 故事卡片样式优化 */
#storyList .bg-orange-50 {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fb923c;
}
#storyList .fa-thumbtack {
    transform: rotate(-20deg);
}
#storyList img {
    border: 1.5px solid #fbbf24;
}
#storyList .fa-star {
    color: #f472b6;
}
#storyList .fa-qrcode {
    font-size: 1.2em;
}

/* 橙色故事卡片风格 */
.bg-orange-50 {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fb923c;
}
#storyList .rounded-2xl {
    box-shadow: 0 4px 24px rgba(251,146,60,0.08);
}
#storyList .w-10.h-10 {
    box-shadow: 0 2px 8px rgba(251,146,60,0.10);
}
#storyList svg polyline {
    transition: stroke 0.3s;
}
#storyList .playing svg polyline {
    stroke: #f97316;
}
#storyList .font-mono {
    font-size: 1.1rem;
}
#storyList .text-orange-500 {
    font-weight: bold;
}
#storyList .text-gray-500 {
    font-size: 1.1rem;
}
#storyList .text-lg {
    font-size: 1.2rem;
}

/* 扁平化卡片和按钮风格 */
.bg-white {
    background: #fff;
}
#storyList .rounded-2xl {
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(251,146,60,0.04);
    border: 1.5px solid #fbbf24;
}
#storyList button, #storyList .bg-orange-50, #storyList .bg-blue-50 {
    box-shadow: none;
    border: none;
    outline: none;
}
#storyList button:active {
    transform: scale(0.95);
}
#storyList .bg-orange-100, #storyList .bg-blue-50 {
    background: #fff7ed;
}
#storyList .bg-blue-50 {
    background: #eff6ff;
}
#storyList .rounded-full {
    border-radius: 9999px;
}
#storyList .font-semibold, #storyList .font-extrabold {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
#storyList .text-lg {
    font-size: 1.15rem;
}
#storyList .text-base {
    font-size: 1rem;
}
#storyList .text-xs {
    font-size: 0.95rem;
}
#storyList .text-gray-900 {
    color: #22223b;
}
#storyList .text-gray-400 {
    color: #b5b5b5;
}
#storyList .text-orange-500 {
    color: #fb923c;
}
#storyList .text-blue-500 {
    color: #3b82f6;
}
#storyList .text-blue-600 {
    color: #2563eb;
}
#storyList .text-orange-600 {
    color: #ea580c;
}
#storyList .bg-orange-50 {
    background: #fff7ed;
}
#storyList .border-orange-100 {
    border-color: #ffedd5;
}
#storyList .shadow-sm {
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
#storyList .transition-transform {
    transition: transform 0.15s cubic-bezier(.4,0,.2,1);
}
#storyList .active\:scale-90:active {
    transform: scale(0.90);
}
#storyList .hover\:scale-\[1\.02\]:hover {
    transform: scale(1.02);
}
#storyList .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
#storyList .py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
#storyList .mb-1 {
    margin-bottom: 0.25rem;
}
#storyList .mb-4 {
    margin-bottom: 1rem;
}
#storyList .mr-2 {
    margin-right: 0.5rem;
}
#storyList .mt-1 {
    margin-top: 0.25rem;
}
#storyList .mt-2 {
    margin-top: 0.5rem;
}
#storyList .w-16 {
    width: 4rem;
}
#storyList .h-16 {
    height: 4rem;
}
#storyList .rounded-xl {
    border-radius: 1rem;
}
#storyList .border {
    border-width: 1px;
}
#storyList .shadow-sm {
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
#storyList .font-mono {
    font-family: 'Fira Mono', 'Menlo', 'Consolas', monospace;
}

/* Dribbble风格细节 */
.bg-white\/80 {
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(6px);
}
.shadow-xl {
    box-shadow: 0 8px 32px rgba(251,146,60,0.10), 0 1.5px 4px rgba(0,0,0,0.03);
}
.shadow-2xl {
    box-shadow: 0 16px 48px rgba(251,146,60,0.13), 0 2px 8px rgba(0,0,0,0.04);
}
.bg-gradient-to-br {
    background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);
}
.bg-gradient-to-r {
    background: linear-gradient(90deg, #fb923c 0%, #fbbf24 100%);
}
.bg-gradient-to-r.from-blue-400.to-blue-300 {
    background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 100%);
}
.rounded-2xl {
    border-radius: 1.25rem;
}
.rounded-full {
    border-radius: 9999px;
}
.rounded-xl {
    border-radius: 1rem;
}
.font-extrabold {
    font-weight: 800;
}
.font-bold {
    font-weight: 700;
}
.font-medium {
    font-weight: 500;
}
.tracking-tight {
    letter-spacing: -0.01em;
}
.drop-shadow-sm {
    filter: drop-shadow(0 1px 2px rgba(251,146,60,0.08));
}
.drop-shadow {
    filter: drop-shadow(0 2px 8px rgba(251,146,60,0.12));
}
.backdrop-blur-md {
    backdrop-filter: blur(8px);
}
.transition-transform {
    transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
.active\:scale-90:active {
    transform: scale(0.90);
}
.hover\:shadow-xl:hover {
    box-shadow: 0 12px 36px rgba(251,146,60,0.13), 0 2px 8px rgba(0,0,0,0.04);
}
.hover\:shadow-lg:hover {
    box-shadow: 0 8px 24px rgba(251,146,60,0.10), 0 1.5px 4px rgba(0,0,0,0.03);
}
.hover\:scale-\[1\.025\]:hover {
    transform: scale(1.025);
} 