/* ===== 多功能Dock样式 ===== */
.multifunction-dock-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: none;
}

@media (max-width: 768px) {
    .multifunction-dock-container {
        display: block;
    }
}

/* Dock按钮样式 */
.dock-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    position: relative;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

.dock-toggle:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset,
        0 0 0 1px rgba(0, 0, 0, 0.15);
}

.dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.dock-svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.dock-circle {
    fill: url(#dock-circle-gradient);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
}

.dock-lines {
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* ===== 蓝色配色方案 ===== */
.dock-toggle {
    /* 蓝色半透明, 透明度0.4 */
    background: rgba(136, 0, 170, 0.4) !important;
    /* 毛玻璃效果, 值越大滤镜效果越强 */
    backdrop-filter: blur(5px) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

.dock-toggle:hover {
    background: rgba(221, 85, 255, 0.95) !important;
    /* 深蓝色 */
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset,
        0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* 渐变圆修改为蓝白渐变 */
.dock-circle {
    fill: url(#dock-blue-gradient) !important;
    stroke: rgba(255, 255, 255, 0.7) !important;
}

/* 添加蓝白渐变定义 */
.defs-only linearGradient#dock-blue-gradient stop:nth-child(1) {
    stop-color: #dd55ff;
    /* 浅蓝 */
}

.defs-only linearGradient#dock-blue-gradient stop:nth-child(2) {
    stop-color: #cc00ff;
    /* 中蓝 */
}

.defs-only linearGradient#dock-blue-gradient stop:nth-child(3) {
    stop-color: #8800aa;
    /* 深蓝 */
}

/* Dock菜单样式 */
.dock-menu {
    display: none;
    position: fixed;
    bottom: 86px;
    right: 20px;
    min-width: 260px;
    width: auto;
    max-width: 90vw;
    background: #fff;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    z-index: 10000;
    padding: 15px 0;
    transform-origin: bottom right;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-menu.active {
    display: block;
    transform: scale(1);
    opacity: 1;
}

.dock-menu::before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border: 10px solid transparent;
    border-top-color: #fff;
    z-index: 1001;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

.dock-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none ! important;
    transition: all 0.2s;
    position: relative;
    z-index: 1002;
}

.dock-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dock-item .dashicons {
    margin-right: 15px;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock-label {
    font-weight: 500;
    /* 文字大小 */
    font-size: 15px;
}

/* 扩展区域样式 */
.dock-extension {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0 0;
    margin-top: 10px;
}

/* ===== 深色模式适配 ===== */
@media (prefers-color-scheme: dark) {
    .dock-menu {
        background: #2c2c2c;
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .dock-menu::before {
        border-top-color: #2c2c2c;
    }

    .dock-item {
        color: #f0f0f0;
    }

    .dock-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dock-extension {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===== SVG渐变定义 ===== */
svg.defs-only {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

/* ===== 桌面端样式 ===== */
.account-menu.desktop-account {
    position: relative;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.account-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    background-color: #f0f0f0;
    position: relative;
    z-index: 1001;
}

.account-toggle:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.account-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px 0;
    padding-top: 10px;
}

.account-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 12px;
    border: 10px solid transparent;
    border-bottom-color: #fff;
    z-index: 1001;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.account-link {
    display: flex;
    align-items: center;
    /* 垂直+水平内边距控制高度 */
    /* 总高度 = 文字高度 + 上下内边距 */
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    z-index: 1002;
}

.account-link:last-child {
    border-bottom: none;
}

.account-link:hover {
    background-color: #f8f8f8;
    color: #8800aa;
}

.account-link .dashicons {
    margin-right: 10px;
    /* 图标大小 */
    font-size: 18px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 响应式控制 ===== */
@media (min-width: 769px) {
    .multifunction-dock-container {
        display: none !important;
    }

    .account-menu.desktop-account {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .account-menu.desktop-account {
        display: none !important;
    }

    /* 调整Dock菜单位置 */
    .dock-menu {
        bottom: 76px;
        right: 15px;
    }
}
