/* Edge风格登录页面样式 */
/* 实现现代化的浏览器新标签页设计 - 清理后精简版 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 颜色变量定义 - 统一管理配色，方便后续修改 */
:root {
    --primary-color: #2383E2;
    --primary-hover: #1A6EB2;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-light: rgba(255, 255, 255, 0.6);
    --bg-primary: rgba(255, 255, 255, 0.1);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.2);
    --error-color: #E53935;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

/* 页面主体样式 */
body.edge-style {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><radialGradient id="star" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="30" r="1" fill="%23ffffff" opacity="0.8"/><circle cx="60" cy="40" r="0.8" fill="%23ffffff" opacity="0.6"/><circle cx="80" cy="20" r="1.2" fill="%23ffffff" opacity="0.9"/><circle cx="40" cy="70" r="0.6" fill="%23ffffff" opacity="0.5"/><circle cx="90" cy="60" r="1" fill="%23ffffff" opacity="0.7"/><circle cx="10" cy="80" r="0.9" fill="%23ffffff" opacity="0.8"/><circle cx="50" cy="20" r="1.1" fill="%23ffffff" opacity="0.9"/><circle cx="70" cy="80" r="0.7" fill="%23ffffff" opacity="0.6"/><circle cx="30" cy="90" r="0.8" fill="%23ffffff" opacity="0.7"/><circle cx="85" cy="90" r="1" fill="%23ffffff" opacity="0.8"/></svg>'), linear-gradient(to bottom, #1e3c72 0%, #2a5298 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 顶部状态栏 - 含天气、时间、登录按钮 */
.edge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.1);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.location {
    font-weight: 500;
}

.weather-icon {
    font-size: 18px;
}

.weather-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.temperature {
    font-weight: 500;
}

.datetime-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.login-btn {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 欢迎文本样式 */
.welcome-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 退出按钮样式 */
.logout-btn {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
}

.logout-btn:hover {
    background-color: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.6);
}

/* 系统按钮样式 */
.system-btn {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.system-btn:hover {
    background-color: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
}

/* 登录表单弹窗 - 核心登录功能 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.login-modal.show {
    display: flex;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    color: #333;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 错误信息提示 */
.error-message {
    background-color: rgba(229, 57, 53, 0.05);
    color: var(--error-color);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border-left: 4px solid var(--error-color);
}

/* 登录表单输入区域 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 16px;
    color: #333;
    transition: var(--transition);
    background-color: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.login-btn-primary {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.login-btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: #666;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-link:hover {
    text-decoration: underline;
}

/* 主要内容区域 - 承载日历和快捷方式 */
.edge-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 实时日历样式 - 核心展示组件 */
/* 日历和待办事项容器 */
.calendar-todo-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin: 15px auto 40px;
    padding: 0 20px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-container {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 待办事项容器 */
.todo-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    width: 100%;
    color: #333;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 400px;
    max-height: 600px;
    box-sizing: border-box;
}

.todo-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.todo-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.todo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.todo-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.todo-empty p {
    margin: 0;
    font-size: 14px;
}

.todo-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.todo-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.todo-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
    color: #333;
    font-family: inherit;
}

.todo-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none;
    z-index: 1;
}

.todo-input::placeholder {
    color: #999;
    font-style: italic;
}

.todo-add-btn {
    flex: 0 0 auto;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.todo-add-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.todo-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 8px;
}

.todo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    background-color: white;
    transition: all 0.2s ease;
}

.todo-item:hover {
    background-color: rgba(248, 250, 252, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.todo-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.todo-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.todo-text {
    font-size: 14px;
    color: #2c3e50;
    flex: 1;
    transition: all 0.2s ease;
    word-break: break-word;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #95a5a6;
    opacity: 0.8;
}

.todo-delete-btn {
    padding: 4px 8px;
    background-color: transparent;
    color: #e74c3c;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-delete-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* 待办事项优先级选择控件样式 */
.todo-priority-select {
    flex: 0 0 auto;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 0;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    min-width: 160px;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 12L0 4h16z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.todo-priority-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none;
    z-index: 1;
}

.todo-priority-select option {
    padding: 10px;
    font-size: 14px;
}

/* 待办事项优先级样式 */
/* 优先级0 - 不重要不紧急 */
.todo-item.priority-0 {
    border-left: 4px solid #3498db;
}

.todo-priority-badge.priority-0 {
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* 优先级1 - 低优先级 */
.todo-item.priority-1 {
    border-left: 4px solid #27ae60;
}

.todo-priority-badge.priority-1 {
    background-color: #27ae60;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* 优先级2 - 中优先级 */
.todo-item.priority-2 {
    border-left: 4px solid #f39c12;
}

.todo-priority-badge.priority-2 {
    background-color: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* 优先级3 - 高优先级 */
.todo-item.priority-3 {
    border-left: 4px solid #e74c3c;
}

.todo-priority-badge.priority-3 {
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* 日历优先级圆点样式 */
.priority-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 2px 0;
}

.priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.8;
}

/* 不同优先级圆点的颜色 */
.priority-dot.priority-0 {
    background-color: #3498db; /* 不重要不紧急 - 淡蓝色 */
}

.priority-dot.priority-1 {
    background-color: #27ae60; /* 不重要紧急 - 绿色 */
}

.priority-dot.priority-2 {
    background-color: #f39c12; /* 重要不紧急 - 橙色 */
}

.priority-dot.priority-3 {
    background-color: #e74c3c; /* 重要很紧急 - 红色 */
}

/* 选中日期样式 */
.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

.calendar-day.selected .lunar-day {
    color: rgba(255, 255, 255, 0.8);
}

/* 日期悬停样式 */
.calendar-day:not(.other-month):hover {
    background-color: rgba(52, 152, 219, 0.1);
    cursor: pointer;
}

/* 滚动条样式 */
.todo-list::-webkit-scrollbar {
    width: 6px;
}

.todo-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.todo-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.todo-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .calendar-todo-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .todo-container {
        min-height: auto;
        max-height: 500px;
    }
    
    .todo-list {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .calendar-todo-container {
        gap: 15px;
        margin: 10px auto 30px;
        padding: 0 10px;
    }
    
    .todo-container {
        padding: 20px;
        min-height: auto;
        max-height: 450px;
    }
    
    .todo-input-group {
        flex-direction: column;
        gap: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }
    
    .todo-input,
    .todo-priority-select,
    .todo-add-btn {
        width: 100%;
        border: 1px solid #e0e0e0;
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .todo-list {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .calendar-todo-container {
        padding: 0 5px;
    }
    
    .todo-container {
        padding: 16px;
        max-height: 400px;
    }
    
    .todo-list {
        max-height: 200px;
    }
}

.calendar {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    max-width: 100%;
    width: 100%;
    color: #333;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.calendar-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
    min-width: 32px;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.calendar-body {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    width: 100%;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 4px;
    box-sizing: border-box;
}

.calendar-day:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background-color: #2383E2;
    color: white;
    font-weight: 700;
}

.day-number {
    font-weight: 500;
    font-size: 16px;
}

.lunar-day {
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.8;
}

.calendar-day.today .lunar-day {
    opacity: 1;
}

/* 快捷方式图标区域 - 核心功能入口 */
.shortcuts-container {
    width: 100%;
    max-width: 1200px;
    margin: 15px 0 0; /*快捷键的顶部区域位置*/
    position: relative;
}

.shortcuts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: center;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 70px; /* 精确控制只显示一行 */
}

.shortcut-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
    backdrop-filter: none;
    text-decoration: none;
    flex: 0 0 auto; /* 自适应宽度 */
    max-width: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
}

.shortcut-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 添加和编辑按钮样式 - 简笔画风格 */
.add-shortcut,
.edit-shortcut {
    cursor: pointer;
    transition: var(--transition);
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.edit-shortcut {
    margin-left: -15px; /* 进一步调整间距，让按钮更靠拢 */
}

.add-shortcut:hover,
.edit-shortcut:hover {
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.add-shortcut .shortcut-icon,
.edit-shortcut .shortcut-icon {
    font-size: 18px;
    font-weight: normal;
    color: var(--text-primary);
}

.add-shortcut .shortcut-text,
.edit-shortcut .shortcut-text {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 快捷图标样式 */
.shortcut-icon {
    font-size: 30px; /* 增大默认图标大小 */
    color: var(--text-primary);
}

/* 网站图标样式 */
.shortcut-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* 默认图标样式 */
.fallback-icon {
    display: inline-block;
    vertical-align: middle;
}

/* 当网站图标加载失败时，显示默认图标 */
.shortcut-icon-img[style*="display: none"] + .fallback-icon {
    margin-right: 0;
}

.shortcut-text {
    font-size: 20px;
    color: var(--text-primary);
    text-align: left;
    line-height: 1.4;
    font-weight: 500;
}

.shortcuts-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: none;
    opacity: 0.6;
    width: auto;
    height: auto;
    font-size: 20px;
    font-weight: normal;
}

.shortcuts-toggle:hover {
    background-color: transparent;
    color: var(--text-primary);
    opacity: 0.8;
}

.toggle-icon {
    font-size: 18px;
    margin: 0;
    line-height: 1;
}

/* 响应式设计 - 适配不同屏幕尺寸 */
@media (max-width: 1200px) {
    .shortcut-item {
        flex: 0 0 calc(14.28% - 16px); /* 每行7个 */
        max-width: calc(14.28% - 16px);
    }
}

@media (max-width: 1024px) {
    .shortcut-item {
        flex: 0 0 calc(16.66% - 16px); /* 每行6个 */
        max-width: calc(16.66% - 16px);
    }
    .calendar-container {
        margin: 50px 0 30px;
    }
    .calendar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .shortcut-item {
        flex: 0 0 calc(20% - 14px); /* 每行5个 */
        max-width: calc(20% - 14px);
        min-width: 60px;
        padding: 10px;
        border: 0.5px solid rgba(255, 255, 255, 0.2);
    }
    .shortcuts-wrapper {
        gap: 0px;
        max-height: 55px; /* 一行的高度 */
    }
    .shortcut-icon {
        font-size: 14px;
    }
    /* 顶部状态栏适配 */
    .edge-header {
        padding: 12px 16px;
    }
    .weather-info {
        font-size: 13px;
    }
    .datetime-info {
        display: none;
    }
    .edge-main {
        padding: 24px 16px;
    }
    .calendar-container {
        margin: 40px 0 30px;
    }
    .calendar {
        padding: 20px;
    }
    .calendar-day {
        aspect-ratio: 1;
        font-size: 13px;
    }
    .shortcut-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .shortcut-item {
        flex: 0 0 calc(25% - 12px); /* 每行4个 */
        max-width: calc(25% - 12px);
        min-width: 50px;
        padding: 8px;
        border: 0.5px solid rgba(255, 255, 255, 0.2);
    }
    .shortcuts-wrapper {
        gap: 0px;
        max-height: 45px; /* 一行的高度 */
    }
    .shortcut-icon {
        font-size: 12px;
    }
    .shortcut-text {
        font-size: 9px;
    }
    /* 顶部状态栏适配 */
    .edge-header {
        padding: 8px 12px;
    }
    .weather-info {
        gap: 6px;
    }
    .login-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .login-container {
        padding: 24px;
        margin: 0 16px;
    }
    .calendar-container {
        margin: 30px 0 24px;
    }
    .calendar {
        padding: 16px;
    }
    .calendar-day {
        aspect-ratio: 1;
        font-size: 12px;
        padding: 2px;
    }
    .day-number {
        font-size: 13px;
    }
    .lunar-day {
        font-size: 9px;
    }
}

/* 假期样式 */
.calendar-day.holiday {
    border: 2px solid #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
    position: relative;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.holiday-mark {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    white-space: nowrap;
}

/* 上班日样式 */
.calendar-day.workday {
    border: 2px solid #f39c12;
    background-color: rgba(243, 156, 18, 0.05);
    position: relative;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.1);
}

.workday-mark {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f39c12;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .calendar-day.holiday,
    .calendar-day.workday {
        border-width: 1px;
    }
    
    .holiday-mark,
    .workday-mark {
        font-size: 9px;
        padding: 1px 4px;
        top: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .holiday-mark,
    .workday-mark {
        font-size: 8px;
        padding: 1px 3px;
        top: -5px;
        right: -5px;
    }
}

/* 快捷图标扩展样式 */

/* 快捷图标链接样式 */
.shortcut-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    justify-content: center;
}

/* 快捷图标编辑模式 */
.shortcut-edit-btn,
.shortcut-delete-btn {
    position: absolute;
    top: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.shortcut-edit-btn {
    left: 2px;
    color: #3b82f6;
}

.shortcut-delete-btn {
    right: 2px;
    color: #ef4444;
}

/* 确保编辑模式下的快捷图标容器定位正确 */
.shortcut-item {
    position: relative;
}

.shortcut-edit-btn:hover,
.shortcut-delete-btn:hover {
    background-color: white;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 快捷图标弹窗样式 */
.shortcut-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.shortcut-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease;
    color: #1f2937;
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    min-height: 0;
    height: auto;
    line-height: normal;
    visibility: hidden;
    background-color: transparent;
    padding: 0;
    border: none;
}

.error-message:empty {
    margin: 0;
    padding: 0;
    height: 0;
    line-height: 0;
    visibility: hidden;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.cancel-btn,
.submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cancel-btn:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.submit-btn {
    background-color: #3b82f6;
    color: white;
}

.submit-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式表单 */
@media (max-width: 576px) {
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
    
    .shortcut-modal-content {
        margin: 10% auto;
        padding: 16px;
    }
}