/* 🚨 严格遵守承诺：100% 复制你原版的物理尺寸、间距与布局，仅将白透/浅色重构为极客暗黑、高级微光与半透明磨砂色调 */
:root { 
    --primary: #6366f1;       /* 现代化高级靛蓝色 */
    --bg: #0f172a;            /* 深邃星空蓝背景 */
    --card: rgba(30, 41, 59, 0.75); /* 深色半透明磨砂玻璃卡片 */
    --danger: #ef4444; 
    --text: #f8fafc;          /* 明亮正文色 */
    --border: rgba(255, 255, 255, 0.08); /* 极细微卡片边框线 */
}
body { 
    font-family: -apple-system, "PingFang SC", sans-serif; 
    /* 升级全局背景色为放射性暗黑渐变 */
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a 70%); 
    margin: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; color: var(--text); 
}

/* ===================================================
💎 全局基础外壳（统一框架与毛玻璃）
=================================================== */
.glass-modal {
    position: fixed;
    left: 50% !important;
    top: 30% !important; 
    transform: translate(-50%, -50%) !important;
    z-index: 1000;
    box-sizing: border-box;
    
    width: 90% !important;
    max-width: 420px !important;
    height: 175px !important; 
    padding: 0 !important; 
    
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 24px !important;
    overflow: hidden !important; 
    
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 🟢 成功时：改用契合暗黑风的深半透明底色 */
.gm-success {
    background: rgba(30, 41, 59, 0.85) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* 🔴 错误时：深半透明底色中融入克制的微弱暗红晕染 */
.gm-error {
    background: rgba(45, 27, 35, 0.85) !important; 
    border: 1px solid rgba(239, 68, 68, 0.25) !important; 
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.1) !important; 
}

/* ===================================================
🪄 核心魔法1：凭空手绘顶部标题栏（分色处理）
=================================================== */
.glass-modal::before {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 46px !important;
    color: #ffffff !important;
    font-size: 15px !important; 
    font-weight: 700 !important;
    line-height: 46px !important; 
    padding-left: 20px !important;
    box-sizing: border-box !important; 
    letter-spacing: 0.5px !important;
    text-align: left !important;
}

/* 🟢 成功状态：保持原有的高级绿顶栏 */
.gm-success::before { 
    content: "Success" !important; 
    background: linear-gradient(135deg, #10b981, #059669) !important; 
}

/* 🔴 错误状态：高质感的珊瑚红/警告红顶栏 */
.gm-error::before { 
    content: "Error" !important; 
    background: linear-gradient(135deg, #ff6b6b, #ee5253) !important; 
}

/* 彻底清除底层残留的 NO 虚构按钮占位 */
.glass-modal::after {
    display: none !important;
    content: "" !important;
}

/* ===================================================
🎨 内容排边微调：图标在左，文本在右，处于同一行
=================================================== */

/* 原生图标槽：靠左侧绝对定位 */
.gm-icon-slot {
    position: absolute !important;
    top: 68px !important; 
    left: 24px !important;
    
    width: 44px !important; 
    height: 44px !important; 
    border-radius: 12px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
/* 调整图标槽在深色卡片里的底色和衬托边框 */
.gm-success .gm-icon-slot { background: rgba(16, 185, 129, 0.1) !important; border: 1px solid rgba(16, 185, 129, 0.25) !important; }
.gm-error .gm-icon-slot { background: rgba(239, 68, 68, 0.15) !important; border: 1px solid rgba(239, 68, 68, 0.25) !important; }

.gm-badge { display: flex !important; align-items: center !important; justify-content: center !important; width: 24px !important; height: 24px !important; border-radius: 50% !important; color: white !important; font-weight: bold !important; }
.badge-success { background: linear-gradient(135deg, #34d399, #10b981) !important; font-size: 11px !important; }
.badge-error { background: linear-gradient(135deg, #ff6b6b, #ee5253) !important; font-size: 14px !important; }
.gm-error .badge-error::before { content: "!" !important; } 

/* 文本包裹容器：紧跟在图标右边，实现完美的同行排列 */
.gm-content { 
    position: absolute !important;
    top: 78px !important; 
    left: 84px !important; 
    right: 24px !important;
    width: auto !important;
    display: block !important;
    text-align: left !important; 
}

/* 强行抹去你原有老代码里的横线和旧标题 */
.glass-modal .gm-hr, 
.glass-modal .gm-title { 
    display: none !important; 
}

/* 消息正文：大字号、稳重、与图标完美并排 */
.glass-modal .gm-msg {
    display: block !important;
    font-size: 15px !important;
    color: #f1f5f9 !important; /* 调亮暗色背景下的正文色 */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    word-break: break-all !important;
}

/* ===================================================
🪄 核心魔法2：把唯一的 close-btn 缩小，精确定位在卡片的右下角！（分色处理）
=================================================== */
.glass-modal .gm-close-btn {
    position: absolute !important;
    right: 24px !important; 
    bottom: 20px !important; 
    left: auto !important;
    top: auto !important; 
    transform: none !important;
    
    width: 84px !important;
    height: 34px !important;
    border-radius: 8px !important; 
    border: none !important;
    cursor: pointer !important;
}

/* 用伪元素写个精致的“确定”文字，把原本原生按钮身上的小叉叉完美遮蔽 */
.glass-modal .gm-close-btn::before {
    content: "确定" !important; 
    position: absolute !important; 
    left: 0 !important; 
    top: 0 !important; 
    width: 100% !important; 
    height: 100% !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    color: #ffffff !important; 
    font-size: 13.5px !important; 
    font-weight: 700 !important;
    border-radius: 8px !important;
    transition: all 0.2s;
}

/* 🟢 成功状态下的右下角按钮：高亮绿 */
.gm-success .gm-close-btn {
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
}
.gm-success .gm-close-btn::before {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* 🔴 错误状态下的右下角按钮：同步改成警告红 */
.gm-error .gm-close-btn {
    box-shadow: 0 4px 10px rgba(238, 82, 83, 0.2) !important;
}
.gm-error .gm-close-btn::before {
    background: linear-gradient(135deg, #ff6b6b, #ee5253) !important;
}

/* 悬浮与点击动效 */
.glass-modal .gm-close-btn:hover::before {
    filter: brightness(1.08) !important;
}
.glass-modal .gm-close-btn:active {
    transform: scale(0.96) !important;
}

/* 动效 */
.v-enter-from, .v-leave-to { transform: translate(-50%, -50%) scale(0.92) !important; opacity: 0 !important; }
.v-enter-active, .v-leave-active { transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }

.container { width: 95%; max-width: 500px; padding: 20px 0; }
/* 业务主卡片转为深色半透明磨砂风格 */
.card { background: var(--card); padding: 24px; border-radius: 24px; backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4); margin-bottom: 20px; }

h3 { margin: 0 0 20px 0; font-size: 18px; font-weight: 700; text-align: center; }
.form-item { margin-bottom: 18px; text-align: left; }
/* 表单标签优化为淡柔灰色 */
.form-item label { display: block; font-size: 13px; font-weight: 600; color: #94a3b8; margin-bottom: 8px; }

.row { display: flex; gap: 12px; }
.row .form-item { flex: 1; }

/* 输入框底色改为深邃暗黑透明，确保边框低调融洽 */
input, select { 
    width: 100%; 
    padding: 12px 16px; 
    
    /* 基础底色：采用深邃的半透明暗蓝黑，绝不出现纯白 */
    background: rgba(30, 41, 59, 0.9) !important; 
    
    /* 低调微光的渐变细边框 */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    border-radius: 12px; 
    font-size: 15px; 
    outline: none; 
    box-sizing: border-box; 
    
    /* 确保文字为明亮的正文色 */
    color: #f8fafc !important; 
    
    /* 平滑的动态过渡 */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 强制重置部分浏览器（如 Safari）的原生亮色外观 */
    -webkit-appearance: none;
    appearance: none;
}

/* 🪐 聚焦状态（Focus）：唤醒现代化高级靛蓝呼吸灯特效 */
input:focus, select:focus { 
    border-color: #6366f1 !important; 
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25) !important; 
}

/* 🎨 占位符颜色（Placeholder）：调至克制且高级的低饱和度柔灰 */
input::placeholder {
    color: #64748b !important;
}

/* 📅 针对“日期/时间输入框”的特定高级暗黑适配（解决原生白底弹窗与亮白图标问题） */
input[type="date"], input[type="time"], input[type="datetime-local"] {
    color-scheme: dark !important; /* ⚡ 关键：强制浏览器将其内置的日期选择面板转为全暗黑模式 */
    position: relative;
}

/* 美化日期/时间输入框右侧自带的小图标，让其变为柔和的淡色 */
input::-webkit-calendar-picker-indicator {
    background-color: transparent;
    filter: invert(0.9) cubic-bezier(0.4, 0, 0.2, 1); /* 将原生黑色图标反转为高质感白灰色 */
    cursor: pointer;
    opacity: 0.6;
}
input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 🔽 针对“下拉菜单（Select）”暗黑弹窗选项优化 */
select option {
    background-color: #1e293b !important; /* 强制下拉菜单的选项背景为卡片深色 */
    color: #f8fafc !important;
}

/* 提醒策略包围圈改为深底色 */
.reminder-group { background: rgba(15, 23, 42, 0.4); padding: 12px; border-radius: 16px; margin-top: 5px; border: 1px solid rgba(255,255,255,0.04); }
.reminder-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.reminder-row:last-child { margin-bottom: 0; }

.btn-circle { width: 34px; height: 34px; border-radius: 10px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; flex-shrink: 0; transition: 0.2s; }

/* 按钮渐变色改良 */
.btn-add, .btn-main { background: linear-gradient(135deg, var(--primary), #4f46e5); color: white; }

/* 提取公共危险警告色块 */
.btn-remove, .btn-delete, .delete-icon {
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171; 
}

/* 基础按钮样式 - 统一高度和圆角 */
.btn-main, .btn-cancel { 
    height: 52px; 
    padding: 0 16px; 
    border-radius: 14px; 
    width: 100%;
    border: none; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; 
}

/* 保存按钮 - 渐变微光 */
.btn-main { 
    flex: 3; 
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3); 
}

.btn-main:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 取消按钮 - 辅助暗色按钮 */
.btn-cancel {
    flex: 1; 
    background-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    margin-left: 12px; 
    border: 1px solid var(--border);
}

.btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* 合并所有 event-item 相关样式 */
.event-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 16px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05) !important; 
}
.event-item:last-child { border-bottom: none !important; }
.event-info { text-align: left; flex: 1; }
/* 调高暗色下日程名称的对比色亮度 */
.event-name { 
    font-weight: 700; 
    font-size: 14px; 
    margin-bottom: 4px; 
    color: #a5b4fc;
    display: flex;      
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.cancel-edit-btn {
    font-size: 11px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: normal;
    transition: all 0.2s;
    user-select: none;
    margin-left: auto;
}
.countdown-badge {
    font-size: 11px;
    font-weight: normal;
    color: #38bdf8;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-block;
    white-space: nowrap;
}
.cancel-edit-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}
.tag { font-size: 12px; color: #94a3b8; background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.warn-badge { display: inline-block; font-size: 11px; color: #fbbf24; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.2); padding: 1px 6px; border-radius: 4px; margin-top: 4px; margin-right: 4px; }

.btn-delete { padding: 6px 12px; font-size: 12px; border-radius: 8px; border: none; cursor: pointer; }

/* 订阅链接区域 */
.link-section { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; text-align: left; }
/* 链接框调成极客暗色代码块风格 */
.link-box { 
    background: rgba(15, 23, 42, 0.6); padding: 14px; border-radius: 12px; font-size: 12px; 
    word-break: break-all; cursor: pointer; border: 1px dashed var(--border); 
    margin-top: 8px; font-family: 'Courier New', Courier, monospace; color: #a5b4fc;
    transition: 0.2s;
}
.link-box:hover { border-color: var(--primary); background: rgba(99,102,241,0.1); }
.header {
    position: relative;
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.header h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
}
.header .subtitle {
    margin: 15px 0;
    font-size: 16px;
    opacity: 0.8;
}
/* 将图标固定在左上角 */
.header-logo-tag {
    position: absolute;
    top: 15px;    
    left: 15px;   
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    backdrop-filter: blur(2px);
}

/* 图标内部的装饰符号 */
.header-logo-tag::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1.5px solid white;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
/* 用户信息卡片容器 */
.user-bar {
    background: var(--card);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    position: relative; 
    z-index: 999;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 模拟头像 */
.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.user-name-wrapper {
    display: flex;
    flex-direction: column;
}

.welcome-text {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 合并的 user-name (全局通用) */
.user-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

/* 基础按钮样式 */
.logout-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    -webkit-tap-highlight-color: transparent; 
}

/* 合并的 logout-btn Hover */
.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

/* 仅在支持鼠标悬停的设备上显示额外的位移效果 */
@media (hover: hover) {
    .logout-btn:hover {
        transform: translateY(-1px); 
    }
}

/* 移动端/触摸时的点击效果 (Active状态) */
.logout-btn:active {
    background: rgba(255,255,255,0.1);
    transform: scale(0.96); 
}

.ics-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    padding: 10px 15px;
    border: 1px solid var(--border);
}
.url-text {
    font-family: monospace;
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #a5b4fc;
}
.week-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.week-btn {
    position: relative;
    cursor: pointer;
    width: 36px;  
    height: 36px;
    display: block;
}

/* 隐藏原生复选框 */
.week-btn input {
    display: none;
}

/* 关键：利用伪类和相邻选择器控制文字样式 */
.week-btn .week-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.5); 
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

/* 当 input 被选中时，紧跟在它后面的 .week-text 变色 */
.week-btn input:checked + .week-text {
    background-color: var(--primary); 
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    border-color: var(--primary);
}

.week-btn:hover .week-text {
    background-color: rgba(255,255,255,0.08);
}
.modal-mask {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-container {
    width: 300px;
    padding: 20px;
    background-color: #1e293b;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-footer {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.delete-icon {
    border: none;
    /* 尺寸调整保持原样 */
    width: 32px;            
    height: 32px;           
    border-radius: 8px;    

    display: inline-flex;
    align-items: center;    
    justify-content: center; 
    vertical-align: middle; 

    margin: 0 0 0 5px;          
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.delete-icon:active {
    transform: scale(0.9);
    background: rgba(239, 68, 68, 0.25);
}

.delete-icon svg {
    width: 20px;            
    height: 20px;
    display: block;
}
.user-control-bar {
    background: var(--card) !important; 
    padding: 14px 20px !important;  
    border-radius: 16px !important; 
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); 
    margin: 12px 0 20px 0;    
    border: 1px solid var(--border);
}

/* 左侧姓名微调 */
.user-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 右侧交互区域 */
.user-action-zone {
    display: flex;
    align-items: center;
    gap: 8px; 
}

.action-item-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;            
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.action-item-btn:hover {
    background-color: rgba(255,255,255,0.05);
    color: #a5b4fc;            
}
.action-active {
    background-color: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-weight: 600;
}
.action-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.action-divider {
    font-size: 0; 
    width: 1px;
    height: 14px;
    background-color: rgba(255,255,255,0.1);
    margin: 0 4px;
}

/* 退出登录专属警告色 */
.btn-logout {
    color: #64748b;            
}
.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.15); 
    color: #f87171;
}

.event-item.is-expired {
    filter: grayscale(100%);
    opacity: 0.4;
    background-color: rgba(15, 23, 42, 0.3) !important; 
    border-left: none !important; 
    border-top: none !important; 
}
div.event-item:not(.is-expired) + div.event-item.is-expired {
    border-top: 3px dashed rgba(255,255,255,0.15) !important; 
    margin-top: 14px !important;                 
    padding-top: 18px !important;
    position: relative;
}
div.event-item:not(.is-expired) + div.event-item.is-expired::before {
    content: "以下为已过期历史日程";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a; /* 匹配深色底色背景 */
    padding: 2px 12px;
    font-size: 11px;
    color: #64748b;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    filter: none !important; 
    opacity: 1 !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* 核心魔法：让浏览器原生白底的变更动画延迟 50000 秒执行，相当于直接废了它的背景色更换功能 */
    transition: background-color 50000s ease-in-out 0s;
    
    /* 强行把文字颜色锁定为你原本的明亮正文色 */
    -webkit-text-fill-color: #f8fafc !important;
    
    /* 关键：利用内阴影只给边框加一层淡淡的微光，和卡片的毛玻璃质感完美融合 */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* 当自动填充框处于聚焦（点击输入）状态时，完美同步你的现代化高级靛蓝呼吸灯特效 */
input:-webkit-autofill:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}
/* 公共基础/复用布局类 */
.input-wrapper {
    position: relative; 
    display: flex; 
    align-items: center; 
    width: 100%;
}
.flex-1 {
    flex: 1;
}
.margin-0 {
    margin: 0;
}
.hidden-input {
    position: absolute; 
    width: 0; 
    height: 0; 
    opacity: 0; 
    pointer-events: none; 
    padding: 0; 
    margin: 0; 
    border: none;
}

/* 统一的输入框清除按钮、搜索清除、关闭卡片等 */
.clear-btn, .clear-btn-small, .clear-search-btn, .close-form-icon, .close-card-btn {
    color: #94a3b8; 
    cursor: pointer; 
    user-select: none; 
}
.clear-btn {
    position: absolute; 
    right: 12px; 
    font-size: 14px; 
    padding: 4px;
}
.clear-btn-small {
    position: absolute; 
    right: 8px; 
    font-size: 13px; 
    padding: 2px;
}
.clear-search-btn {
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 14px; 
    padding: 6px 10px 6px 6px;
}
.close-form-icon {
    position: absolute; 
    top: 16px; 
    right: 20px; 
    font-size: 18px; 
    font-weight: bold; 
    padding: 4px; 
}
.close-card-btn {
    background: none; 
    border: none; 
    font-size: 18px;
}

/* 身份验证 (登录/注册/重置) */
.input-with-clear {
    width: 100%; 
    padding-right: 35px;
}
.reset-box {
    background: #f8fafc; 
    padding: 10px; 
    border-radius: 8px; 
    margin-bottom: 15px;
}
.primary-label {
    color: var(--primary);
}
.auth-footer-links {
    display: flex; 
    justify-content: space-between; 
    margin-top: 20px; 
    font-size: 14px;
}
.switch-mode-btn {
    color: var(--primary); 
    cursor: pointer;
}
.forgot-pwd-btn {
    color: #64748b; 
    cursor: pointer;
}

/* 顶部用户栏与下拉菜单 */
.header-user-bar {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0;
}
.dropdown-trigger {
    position: relative; 
    cursor: pointer; 
    user-select: none;
}
.dropdown-trigger .user-name {
    margin-right: 4px;
}
.dropdown-trigger .arrow-icon {
    font-size: 10px; 
    color: #94a3b8; 
    transition: transform 0.2s; 
    display: inline-block;
}
.dropdown-menu {
    position: absolute; 
    top: 100%; 
    left: 0; 
    margin-top: 8px; 
    
    /* 核心风格：深色半透明磨砂背景 */
    background: rgba(30, 41, 59, 0.9) !important; 
    backdrop-filter: blur(20px) saturate(180%) !important;
    
    /* 极细微卡片边框线 */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    border-radius: 16px !important; 
    
    /* 柔和的深色投影 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important; 
    
    z-index: 1001; 
    min-width: 140px; 
    padding: 8px !important; 
    display: flex; 
    flex-direction: column; 
    gap: 4px !important;
}

/* 🖱️ 下拉选项：保持与主界面一致的交互体验 */
.dropdown-item {
    padding: 10px 14px !important; 
    font-size: 14px !important; 
    color: #94a3b8 !important; /* 默认非激活状态为柔灰色 */
    border-radius: 10px !important; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.2s ease !important;
    cursor: pointer;
}

/* 🚀 悬停与激活状态 */
.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.15) !important; /* 微光蓝底 */
    color: #e2e8f0 !important;
}

.dropdown-item.is-active {
    background: rgba(99, 102, 241, 0.2) !important; 
    color: #ffffff !important; 
    font-weight: 600 !important;
}

/* 通知/日历设置卡片 */
.setting-card {
    margin-bottom: 20px;
}
.setting-card-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 16px;
}
.setting-form-gap {
    display: flex; 
    flex-direction: column; 
    gap: 12px;
}
.setting-label {
    font-size: 14px; 
    color: #64748b;
}
.setting-input-margin {
    margin-top: 6px;
}
.setting-input {
    width: 100%; 
    padding: 14px 35px 14px 14px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    box-sizing: border-box;
}
.setting-btn-wrapper {
    display: flex; 
    width: 100%; 
    margin-top: 10px;
}

/* 日历专属样式 */
.calendar-slug-wrapper {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 6px;
}
.link-section-margin {
    margin-top: 6px;
}
.link-label {
    font-size: 13px; 
    font-weight: 600; 
    color: #64748b;
}
.copy-link-box {
    cursor: pointer; 
    word-break: break-all;
}
.link-tip {
    font-size: 11px; 
    color: #94a3b8; 
    margin: 6px 0 0 0; 
    line-height: 1.4;
}

/* 提醒表单添加/修改 */
.relative-box {
    position: relative;
}
.time-range-picker {
    display: flex; 
    gap: 10px; 
    align-items: center;
}
.time-input {
    width: 100%; 
    padding-right: 30px;
}
.form-actions-gap {
    display: flex; 
    gap: 10px;
}

/* 提醒清单与搜索 */
.list-card-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px;
}
.add-reminder-floating-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white; 
    border: none; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-weight: 500; 
    font-size: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    padding-bottom: 2px;
    margin-right: 8px;
}
.add-reminder-floating-btn:hover {
    transform: scale(1.1); 
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}
.add-reminder-floating-btn:active {
    transform: scale(0.95);
}

.search-input-container {
    margin: 16px 0; 
    position: relative; 
    width: 100%;
}
.search-input-box {
    width: calc(100% - 4px);
    padding: 12px 35px 12px 18px; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    font-size: 13px; 
    color: #334155;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.search-input-box:focus {
    border-color: #3b82f6; 
    background-color: #ffffff; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 列表项与状态 */
.event-item-wrapper {
    cursor: pointer;
}
.editing-indicator {
    color: var(--primary);
}
.event-details-text {
    font-size: 11px; 
    color: #64748b; 
    line-height: 1.5;
}
.time-indicator {
    color: var(--primary, #3b82f6); 
    font-weight: 500; 
    position: relative; 
    top: -2px;
}
.time-indicator.expired-text {
    color: #94a3b8; 
    font-weight: normal;
}

/* 底部历史记录隐藏/显示开关 */
.toggle-expired-wrapper {
    display: flex; 
    justify-content: center; 
    margin-top: 20px; 
    padding-bottom: 10px;
}
.copyright {
    bottom: 0;
    max-width: 500px !important;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #888;
}