* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary: #8A2BE2;
    --primary-light: #9d45e5;
    --secondary: #FF6B6B;
    --accent: #4ECDC4;
    --bg-light: #F8F9FA;
    --bg-dark: #212529;
    --card-light: #FFFFFF;
    --card-dark: #343A40;
    --text-light: #212529;
    --text-dark: #F8F9FA;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --nav-active: #6A0DAD;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* 暗色模式 */
.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 顶部导航 */
.app-header {
    padding: 15px 20px 10px;
    background: linear-gradient(135deg, var(--primary), #6A0DAD);
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-title i {
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 底部导航 */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 20px 25px;
    background-color: var(--card-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 990;
}

.dark-mode .bottom-nav {
    background-color: var(--card-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6C757D;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 8px 12px;
    border-radius: 12px;
}

.dark-mode .nav-item {
    color: #ADB5BD;
}

.nav-item.active {
    color: var(--nav-active);
    background: rgba(138, 43, 226, 0.1);
}

.nav-item.active i {
    color: var(--primary);
    transform: scale(1.1);
}

.nav-item i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.voice-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6A0DAD);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
    transition: var(--transition);
    z-index: 10;
    border: none;
    user-select: none;
}

.voice-btn:active {
    transform: translateX(-50%) scale(0.95);
    background: linear-gradient(135deg, var(--primary-light), #7a1fc5);
}

.voice-btn.recording {
    animation: pulse 1.5s infinite;
    transform: translateX(-50%) scale(1.1);
}

/* 语音录制界面 */
.voice-recorder {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.voice-recorder.active {
    opacity: 1;
    pointer-events: all;
}

.recorder-container {
    background-color: var(--card-light);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    max-width: 80%;
    position: relative;
}

.dark-mode .recorder-container {
    background-color: var(--card-dark);
}

.recorder-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6A0DAD);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: white;
    animation: pulse 1.5s infinite;
}

.recorder-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.recording-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.recorder-hint {
    font-size: 0.9rem;
    color: #6C757D;
    margin-top: 20px;
}

.dark-mode .recorder-hint {
    color: #ADB5BD;
}

/* 剪贴板弹窗 */
.clipboard-modal {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-light);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translate(-50%, 100px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-mode .clipboard-modal {
    background-color: var(--card-dark);
}

.clipboard-modal.active {
    opacity: 1;
    transform: translate(-50%, 0);
}

.clipboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.clipboard-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.clipboard-content {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 150px;
    overflow-y: auto;
}

.dark-mode .clipboard-content {
    background-color: var(--bg-dark);
}

.clipboard-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6A0DAD);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #CED4DA;
    color: #6C757D;
}

.dark-mode .btn-outline {
    border: 2px solid #495057;
    color: #ADB5BD;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(138, 43, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

@keyframes wave {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-height: 700px) {
    .calendar-container {
        padding: 5px;
    }
    
    .section-title {
        margin-bottom: 10px;
    }
    
    .record-card {
        padding: 12px;
    }
}

/* 页面切换动画 */
.page {
    display: none;
    /* position: absolute; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    background-color: var(--bg-light);
    z-index: 1;
    overflow-y: auto;
}

.dark-mode .page {
    background-color: var(--bg-dark);
}

.page.active {
    display: block;
    animation: fadeIn 0.4s forwards;
}

/* 设置页面 */
.settings-page {
    padding: 20px;
}

.setting-item {
    background-color: var(--card-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode .setting-item {
    background-color: var(--card-dark);
}

.setting-item:active {
    transform: scale(0.98);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-label i {
    font-size: 1.2rem;
    color: var(--primary);
}
.zindex-1000{
    z-index: 1000;
}
.zindex-990{
    z-index: 990;
}
.zindex-1{
    z-index: 1;
}
/* 导航链接样式 */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

/* 活动状态 */
.nav-item.active {
    color: var(--nav-active);
    background: rgba(138, 43, 226, 0.1);
}

.nav-item.active i {
    color: var(--primary);
    transform: scale(1.1);
}